Commit Graph

31454 Commits

Author SHA1 Message Date
Chris Peterson
8489c927a0 Bug 964016 - Part 5: Remove unused JS_BEGIN_EXTERN_C and JS_END_EXTERN_C macros. r=luke 2014-01-24 20:08:28 -08:00
Chris Peterson
28f3584391 Bug 964016 - Part 4: Replace JS_ALWAYS_INLINE with MOZ_ALWAYS_INLINE. r=luke 2014-01-24 20:14:56 -08:00
Chris Peterson
0fc2ea5493 Bug 964016 - Part 3: Replace JS_NEVER_INLINE with MOZ_NEVER_INLINE. r=luke 2014-01-24 20:21:24 -08:00
Chris Peterson
610ad17d6a Bug 964016 - Part 2: Replace JS_UNLIKELY with MOZ_UNLIKELY. r=luke 2014-01-24 19:57:58 -08:00
Chris Peterson
89dba14aec Bug 964016 - Part 1: Replace JS_LIKELY with MOZ_LIKELY. r=luke 2014-01-25 22:04:37 -08:00
Nicholas Nethercote
29804a9976 Bug 963528 - Don't allocate zero-sized script data. r=luke.
--HG--
extra : rebase_source : 16beebadc53671e68b73d920ad96c366f48206d3
2014-01-27 18:31:34 -08:00
Shu-yu Guo
83f301d2ff Bug 959163 - Fix debug asserts in PropertyTree::lookupChild. (r=jorendorff) 2014-01-27 11:33:05 -08:00
Andrew McCreight
0df713733d Bug 963665 - Make nsIXPConnect noscript. r=bholley 2014-01-27 07:16:38 -08:00
Peiyong Lin
07cf02302b Bug 961041 - Replace infallible allocation in DOMStorage::BroadcastChangeNotification with fallible allocation. r=smaug 2014-01-27 08:25:19 -05:00
Andrew McCreight
3ca5e94a9f Bug 963312 - Get JS engine telemetry values from Components.utils, not nsIXPConnect. r=bholley,taras 2014-01-26 07:57:00 -08:00
Zack Weinberg
098b7dc5c7 Bug 933885 part 1: make xpcshell dump() and print() handle non-ASCII characters correctly. r=bz 2014-01-25 23:27:11 -05:00
Jon Coppeard
033da2e92d Bug 961795 - Track malloc allocations for TypedArray objects in the nursery r=terrence 2014-01-25 09:32:45 +00:00
Jon Coppeard
7d118df1ce Bug 963167 - Convert JS_SetElement() to take HandleValue rather than MutableHandleValue r=sfink r=bz 2014-01-25 09:31:17 +00:00
Jon Coppeard
57edf84676 Bug 959787 - Handlify JS_Set* APIs r=terrence r=bz 2014-01-25 09:29:12 +00:00
Jon Coppeard
1e1b55a64c Bug 962576 - Improve profiling of minor GCs r=terrence 2014-01-25 09:26:43 +00:00
Boris Zbarsky
ef6c1819b3 Bug 962605 part 2. Enable baseline jit in xpcshell. r=bholley 2014-01-22 14:37:11 -05:00
Bobby Holley
3b985cf9d7 Bug 957688 - Remove nsIXPCSecurityManager::CanAccess and nsScriptSecurityManager::CheckPropertyAccessImpl. r=mrbkap
\o/
2014-01-24 16:08:26 -08:00
Bobby Holley
03fb99d54e Bug 957688 - Kill off checkAccess. r=mrbkap 2014-01-24 16:08:26 -08:00
Bobby Holley
f99748dd9f Bug 957688 - Remove checkAccess nsIXPCScriptable hook. r=mrbkap 2014-01-24 16:08:25 -08:00
Bobby Holley
400e5a6f32 Bug 957688 - Remove checkObjectAccess security callback. r=mrbkap
There's no need for the JS shell stuff either, since vm/Runtime.cpp already
sets up NullSecurityCallbacks by default.
2014-01-24 16:08:25 -08:00
Bobby Holley
1b4043712c Bug 957688 - Remove side-effect-y call to js::CheckAccess, and remove js::CheckAccess itself. r=mrbkap
Thankfully, this case was only taking the JSACC_PROTO, which is significantly
simpler than the alternative.
2014-01-24 16:08:25 -08:00
Bobby Holley
12b60887b5 Bug 957688 - Remove side-effect-free calls to js::CheckAccess. r=mrbkap
js::CheckAccess has all sorts of crazy side-effects on its parameters. Luckily,
they mostly happen on dead values.

We have to alter a jit-test that previously threw, and doesn't anymore. I have
confirmed that the reason for throwing was not the security check itself, but
rather the lookupGeneric call that happens inside js::CheckAccess, which ends
up throwing 'undefined is not a function'. It seems like this is just an issue
of calling lookupGeneric when we shouldn't, and that the correct behavior here
is not to throw.
2014-01-24 16:08:24 -08:00
Bobby Holley
10c01ae603 Bug 957688 - Remove JS_CheckAccess. r=mrbkap
But how will we call from Gecko into the JS engine to query CAPS via a callback?
2014-01-24 16:08:24 -08:00
Bobby Holley
17031e923f Bug 957688 - Make ComputeStackString pass a principal and remove checkAccess call. r=mrbkap
Now that we have the principal-based filtering for stack walking, we can do this.
This isn't technically equivalent to the old behavior, since a stack that goes:

A -> B -> A

would previous have only seen the second set of |A| frames, whereas now we'd
see both sets. But this seems strictly better (also, it doesn't happen on the
web).

As noted, I've filed a bug for making this context- and saveFrameChain-agnostic.
2014-01-24 16:08:24 -08:00
Terrence Cole
4a61834330 Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 7; r=sfink 2014-01-21 17:03:20 -08:00
Terrence Cole
f62e0d6505 Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 6; r=jonco 2014-01-17 10:10:17 -08:00
Terrence Cole
c069811bd3 Bug 963232 - Add extensive documentation to js/GCAPI.h; r=billm 2014-01-23 11:47:11 -08:00
Jeff Walden
63829a3011 Bug 963434 - Remove jsopcode.tbl and jsoplengen.cpp in favor of a higher-order macro, and make JSOP_*_LENGTH into C++ constant variables. This will make the build process simpler, and it likely eliminates a needs-CLOBBER situation encountered while landing bug 948583. Particular thanks to r=jorendorff for the fast review here (given any change at all to jsopcode.tbl would bitrot this), DONTBUILD because already landed with wrong bug number 2014-01-24 13:21:09 -08:00
Jeff Walden
70d19802cd Backed out changeset fe06fb5e10a7, wrong bug number.
--HG--
extra : rebase_source : fad89601b11e3a6cf19114b2152fa3c62d05cce4
2014-01-24 15:00:52 -08:00
Andrew McCreight
87b0febc24 Bug 963652 - Handlify JS_ForwardGetPropertyTo. r=terrence 2014-01-24 15:01:47 -08:00
Jeff Walden
bc1fd7dc67 Bug 963634 - Remove jsopcode.tbl and jsoplengen.cpp in favor of a higher-order macro, and make JSOP_*_LENGTH into C++ constant variables. This will make the build process simpler, and it likely eliminates a needs-CLOBBER situation encountered while landing bug 948583. Particular thanks to r=jorendorff for the fast review here (given any change at all to jsopcode.tbl would bitrot this)
--HG--
extra : rebase_source : 4f5956dd196ff894766210cc4c9629054fc2914d
2014-01-24 13:21:09 -08:00
Till Schneidereit
e2af644d5a Bug 963077 - Bustage followup on a CLOSED TREE. r=jandem 2014-01-24 20:18:52 +01:00
Till Schneidereit
871ac81c13 Bug 963077 - ensure function is non-lazy before getting its arguments in js_fun_apply. r=jandem
--HG--
extra : rebase_source : cb81f240eb139ed5d719901265eaf6d51fd0e0e1
2014-01-24 17:05:25 +01:00
Jon Coppeard
e04fe7ce7c Bug 959787 - Handlify JS_Lookup* APIs r=sfink r=bz 2014-01-24 14:03:56 +00:00
Marcin Juszkiewicz
c9d7c32ce7 Bug 963026 - AArch64 support for Javascript Engine. r=djvj 2014-01-24 08:46:58 -05:00
Nicholas Nethercote
dd904d4ef9 Bug 961883 (part 3) - Measure and report the Nursery. r=terrence.
--HG--
extra : rebase_source : 6f12d47ca8cedc96b0dd0477ca4f71de08e47181
2014-01-21 17:17:08 -08:00
Nicholas Nethercote
286bcca0cc Bug 961883 (part 2) - Measure and report the StoreBuffer. r=terrence.
--HG--
extra : rebase_source : f298f0373b7fee99eee7a62060f882d628f97eb2
2014-01-21 17:17:02 -08:00
Nicholas Nethercote
674e5b03a5 Bug 961883 (part 1) - Measure and report the SourceDataCache. r=benjamin.
--HG--
extra : rebase_source : b599e19fb681e972b1f6e184c44f5a726a61009f
2014-01-20 19:52:57 -08:00
Nicholas Nethercote
7b29979d36 Bug 961883 (part 0) - Some tiny HashTable comment tweaks. r=luke.
--HG--
extra : rebase_source : 749b61ec992335aa5e2be63340e88b04ff236967
2014-01-20 19:52:52 -08:00
Jeff Walden
853804dbf3 Bug 948227 - Add code to warn when the __proto__ setter is called that it's very slow and shouldn't be used. (Don't use it yet, tho, because it requires the second part of bug 948583 to land first. Once that lands, fully enabling this just requires some uncommenting.) r=efaust
--HG--
extra : rebase_source : 87d320edcc99b6ef7df98c2470c78d4085aa4f99
2013-12-11 16:04:07 -08:00
Jeff Walden
e6f83cf565 Fix the Windows non-threadsafe build by exposing/using a thread-aware symbol only in threadsafe builds. No bug, r=terrence
--HG--
extra : rebase_source : 5f950f54bad34f2fd93da575aff332f155a684aa
2014-01-23 16:09:07 -08:00
Jeff Walden
e70e616129 Bug 948583 - Implement __proto__ in object literals using a new JSOp. The JSOp still uses setprop-like behavior to mutate the [[Prototype]]; we'll change that in a subsequent patch, coming probably in the next couple weeks (definitely before uplift). r=jorendorff, r=efaust
--HG--
extra : rebase_source : d779071661bbb1375b8eff60afa7cdf36d2c3005
2013-12-11 16:03:57 -08:00
Marcin Juszkiewicz
9b408227a2 Bug 963032 - AArch64 support for Build Config. r=mshal 2014-01-23 16:34:32 -05:00
Bert Belder
5218835332 Bug 956899 - js: Use mozilla::ThreadLocal instead of NSPR for IonContext's thread-local variable. r=jwalden
* * *
[mq]: moar

--HG--
extra : rebase_source : dfc785cf9eac717624116484f07065e870a22801
2014-01-22 12:42:56 -05:00
Jeff Walden
93a3b26b9d Replace a few manual JSPropertySpec[] terminators with JS_PS_END. No bug, r=trivial
--HG--
extra : rebase_source : 4552e44f655f18963260d5b0b235e15df4721ff0
2014-01-09 15:54:54 -06:00
Jan de Mooij
270a078ea8 Bug 962653 - Use mozilla::Atomic for MIRGenerator::cancelBuild_. r=nbp
--HG--
extra : rebase_source : ebcbf9b1a6d21e516ab18d58f203270ce25a63bc
2014-01-23 20:50:56 +01:00
Ryan VanderMeulen
9b696217ac Backed out changeset 26984019ff59 (bug 962605) for suspicion of causing OSX 10.8 debug mochitest-other crashes.
CLOSED TREE
2014-01-23 12:45:43 -05:00
Nicolas B. Pierron
89b309f197 Bug 920322 - XDR/Clone singletons. r=bhackett,jandem 2014-01-23 06:43:28 -08:00
Boris Zbarsky
eb3ea30e19 Bug 962605. Enable baseline jit in xpcshell. r=bholley 2014-01-22 14:37:11 -05:00
Jon Coppeard
25b096a643 Bug 962576 - Fix warning in minor GC profiling code which is not built by default r=me DONTBUILD 2014-01-23 12:25:25 +00:00