Граф коммитов

43777 Коммитов

Автор SHA1 Сообщение Дата
Nicholas Nethercote 0e1cc95b5f Bug 1039965 - Avoid slop in JS arrays. r=bhackett,terrence.
This patch changes JS array resizing to always allocate power-of-two sized slot
requests. Previously it would mostly make slight-more-than-power-of-two sized
requests, which cause lots of slop.

Also, shrinkElements() now only does a reallocation if it would result in going
down a size class. E.g. if you pop all the elements from a 1000-element array,
it would realloc 999, then 998, then 997, all the way down the minimum size.
Now it does 512, then 256, down to the minimum size (which is 8).

I confirmed with DMD that the element allocations now have zero slop. This
reduces peak RSS loading a couple of large PDF files (four times each) with
pdf.js by 10s of MiBs.

--HG--
extra : rebase_source : 942c11de724843aa582e3a17b02043458a57e594
2014-07-17 21:14:20 -07:00
Dan Gohman fea2ec232d Bug 1027885 - OdinMonkey: Make CodeGeneratorShared::mirGen consistent with FunctionCompiler::mirGen r=luke 2014-07-21 19:09:16 -07:00
Nick Fitzgerald 87b69e2b9e Bug 993085 - Part 1: Add the Debugger.Memory.prototype.trackingAllocationSites accessor property r=jimb 2014-07-21 18:16:13 -07:00
Wes Kocher 1dddfef6bc Bug 993085 - Part 0: Freeze SavedFrame and SavedFrame.prototype r=jimb 2014-07-18 13:48:06 -07:00
Wes Kocher adeb18147d Merge m-c to inbound 2014-07-21 17:34:59 -07:00
Wes Kocher 8cc1c6b2ac Merge inbound to m-c a=merge 2014-07-21 12:54:52 -07:00
Bill McCloskey 3964a88c46 Bug 1041370 - Fix script entry hook #ifdefing (a=RyanVM) 2014-07-20 21:58:49 -07:00
Jan de Mooij 4a15b16dd6 Bug 1028866 part 6 - Move NewString* functions from jsstr.{h,cpp} to vm/String.{h,cpp}. rs=luke 2014-07-21 12:45:48 +02:00
Benjamin Bouvier 8a3e5d92be Bug 1040823: Simplify tests from bug 986673; r=tests-only 2014-07-21 10:06:38 +02:00
Benjamin Bouvier fd81fd702c Bug 1040823: Make --js-cache-per-process the default for testing; r=luke 2014-07-21 10:06:09 +02:00
Nicholas Nethercote 523362fec4 Bug 1039162 (attempt 2) - Don't use |for each| in XPCOMUtils.jsm. r=mrbkap. 2014-07-16 22:45:29 -07:00
Ryan VanderMeulen 800fc2b192 Merge m-c to inbound. a=merge 2014-07-20 18:32:22 -04:00
Bobby Holley 4ae6a9f387 Bug 1036790 - Only expect pjs methods for nightly builds in test_xrayToJS.xul. r=me 2014-07-20 16:15:22 -06:00
Emanuel Hoogeveen f7ea6fd501 Bug 1041307 - Don't try to finalize JITcode in non-ion builds. r=billm 2014-07-20 08:23:00 +02:00
Benjamin Bouvier 983a043076 Bug 1040785: Remove unused inc32 and dec32; r=jandem 2014-07-21 09:45:23 +02:00
Benjamin Bouvier c6e08c78b5 Bug 1040785: Move LInterruptCheck from the platform-specific LIR headers to the platform-independent one; r=jandem 2014-07-21 09:45:13 +02:00
Benjamin Bouvier 45ca7c510b Bug 1040785: Factor out InvokeFromAsmJS functions; r=luke 2014-07-21 09:45:04 +02:00
Benjamin Bouvier 43ae4233c5 Bug 986673: Tests; r=luke 2014-07-18 12:14:51 +02:00
Luke Wagner 977dc747cd Bug 986673: Test pointer's value in AsmJSInterruptCheck; r=bbouvier 2014-07-21 09:36:07 +02:00
Bob Owen 7cea4e4d14 Bug 1037564 Part 2: Replace AutoPushJSContexts et al. in nsXBLPrototypeHandler. r=bholley 2014-07-18 12:52:32 +01:00
Bobby Holley 972dacf31e Bug 930091 - Check objects at COW membranes. r=gabor,r=msucan 2014-07-20 15:36:32 -06:00
Steve Fink 7d2751a360 No bug. Drop expected number of b2g hazards to zero, r=terrence
DONTBUILD because mostly NPOTB

--HG--
extra : rebase_source : 06ca33d45445681ac8c2e32671d79409d76ca52e
2014-07-21 10:30:57 -07:00
Jeff Walden 2acd40fabd Bug 1037686 - Fix b2g-only bustage for a super-old compiler, sigh. r=b2g affecting a CLOSED TREE 2014-07-21 13:22:49 -04:00
Jeff Walden 90d8bb6fe0 Bug 1037686 - Remove js_strdup now that no one uses it. r=jimb
--HG--
extra : rebase_source : d05252549d90371daec12562b5e88c7029fb41cc
2014-07-11 15:12:16 -07:00
Jeff Walden bf575a31b1 Bug 1037686 - Convert ScriptSource::{filename,introducerFilename}_ to UniquePtr, make !introducerFilename_ formally imply filename_. r=jimb
--HG--
extra : rebase_source : d45ed17c6b95345d4966a8809f90269944699846
2014-07-11 15:10:49 -07:00
Jeff Walden 2b77e98fa9 Bug 1037686 - Remove the js_strdup(cx, chars) method, and convert users to a similar DuplicateString method returning UniquePtr. r=jimb
--HG--
extra : rebase_source : 2c81d049967fbbc40953fb21dc7e9b67df8366d6
2014-07-11 15:09:55 -07:00
Luke Wagner 870604424c Bug 1027885 - OdinMonkey: properly represent calls to builtin functions in the profiling stack (r=dougc) 2014-07-21 11:05:44 -05:00
Luke Wagner 33385c13b0 Bug 1027885 - OdinMonkey: optimize representation of StaticLinkData::absoluteLinks (r=dougc) 2014-07-21 10:58:33 -05:00
Luke Wagner 94653a66ca Bug 1027885 - OdinMonkey: maintain AsmJSActivation::fp in all frames in profiling mode (r=dougc) 2014-07-21 10:58:12 -05:00
Luke Wagner 260c370ed0 Bug 1027885 - OdinMonkey: set up AsmJSFrame and use instead of exitFP for exit stubs (r=dougc) 2014-07-21 10:57:29 -05:00
Luke Wagner 3414c83d98 Bug 1027885 - OdinMonkey: avoid passing JSContext to C++ functions that can instead use innermostAsmJSActivation (r=dougc) 2014-07-21 10:56:02 -05:00
Luke Wagner af44b6bf3d Bug 1027885 - OdinMonkey: store the AsmJSActivation in global data (r=dougc) 2014-07-21 10:40:37 -05:00
Luke Wagner fb01102886 Bug 1027885 - rm unused JSContext::stackIterAssertionEnabled (r=jandem) 2014-07-21 10:40:05 -05:00
Bobby Holley 71765487c1 Bug 1040181 - Use an opaque wrapper rather than failing in Rewrap. r=gabor 2014-07-20 10:03:58 -06:00
Jason Orendorff b6a5aa1596 Bug 1035287, part 1 - Add missing oom check. r=jimb.
--HG--
extra : rebase_source : 138e8d5b8cf232cfb1c8a06822c2d0423a0227c6
2014-07-08 19:32:06 -05:00
Jason Orendorff cf946167b7 Bug 1037897 - Pass ffi_call a pointer into a real array, to eliminate a static analysis warning. r=dteller.
--HG--
extra : rebase_source : 909a4f71f045aa7a9e20a8702c60c5d9cec38cef
2014-07-16 12:59:07 -05:00
Jason Orendorff f22fe65bc9 Bug 1033856 - Assertion failure: false (MOZ_ASSERT_UNREACHABLE: unexpected type), at jit/Lowering.cpp:1772 with Symbol. r=jandem.
--HG--
extra : rebase_source : 5b5757fa46b3663aa1d2c79a75db723a42290a33
2014-07-03 08:24:00 -05:00
Jason Orendorff fcaea15a7a Bug 1031558 - JS GDB pretty-printers: fix symbol jsids. r=jimb.
--HG--
extra : rebase_source : 8b50cc4a1ab6aaddf0150bd7ee8dc225f0595b07
2014-06-27 17:04:19 -05:00
Jim Blandy 0781fc5cfb Bug 1031881: Remove unused elements of JSDebugHooks, and their supporting code. r=sfink 2014-07-19 18:07:05 -07:00
Tom Schuster c25e1b9944 Bug 1036136 - Implement structured cloning for Map and Set objects. r=jorendorff,bent 2014-07-19 23:44:53 +02:00
Trevor Saunders 21fb0d365a no bug - don't return nullptr in functions returning bool r=themaid 2014-07-17 20:11:27 -04:00
Boris Zbarsky 46eb006dbc Bug 966452 part 1. Refactor the js_ReportUncaughtException to produce a (message, JSErrorReport*) pair before reporting. r=waldo and including the fix for bug 1034616 to fix JS tests to deal with this, r=jorendorff. r=terrence on the AutoStableStringChars bits 2014-07-04 01:24:54 -04:00
Bill McCloskey b7d71d4781 Bug 1039034 - Don't leak add-on interpositions at shutdown (r=bholley) 2014-07-18 16:50:55 -07:00
Mike Hommey d3f990ebdb Bug 1040639 - Remove LIBS_DIR. r=mshal 2014-07-19 08:42:16 +09:00
Wes Kocher e0365dc1db Backed out changeset 72d92f058cf0 (bug 989348) under suspicion of causing various devtools crashes 2014-07-18 16:29:58 -07:00
Shu-yu Guo df4b247bb2 Bug 1037665 - Don't optimize arguments.callee in strict mode. (r=h4writer) 2014-07-18 14:39:30 -07:00
Sankha Narayan Guria b0ab4240a5 Bug 989348 - BaselineCompiler: Optimize JSOP_ARRAYPUSH. r=djvj 2014-07-04 13:54:34 +02:00
Terrence Cole 966b88576f Bug 987622 - Remove GetPDA as it is unused now that jsd1 is gone; r=jimb 2014-07-18 11:26:46 -07:00
Terrence Cole e9d975fd1a Bug 1033020 - Make BaslineFrame::returnValue match InterpreterFrame::returnValue; r=jandem 2014-07-01 15:40:48 -07:00
Ryan VanderMeulen 924bbbf70c Backed out changeset a4db87a48b24 (bug 1039551) for Windows debug mochitest-4 crashes. 2014-07-18 12:36:33 -04:00