Commit Graph

24536 Commits

Author SHA1 Message Date
Brian Hackett
9516ebc71c Bug 844364 - Fix bogus assertion, inverted test when compiling JSOP_EVAL, r=jandem. 2013-02-25 15:17:12 -07:00
Bobby Holley
71a3669399 Bug 836301 - Hoist some assertions, remove a bunch of no-op trap overrides, and add assertions that we've entered our policy. r=mrbkap 2013-02-25 13:54:18 -08:00
Bobby Holley
c3361bfc99 Bug 836301 - Hoist enter() calls from {Xray,}Wrapper::foo into Proxy::foo. r=mrbkap 2013-02-25 13:54:18 -08:00
Bobby Holley
256ed2c8ba Bug 836301 - Introduce an RAII class for entering policies. r=mrbkap
This will allow us to make some hard assertions that a given policy has been
entered exactly once.
2013-02-25 13:54:18 -08:00
Bobby Holley
48bda79df5 Bug 836301 - Hoist enter() into BaseProxyHandler. r=mrbkap 2013-02-25 13:54:18 -08:00
Bobby Holley
a9b42a6db0 Bug 836301 - Add tracking for whether we have a non-trivial enter() trap. r=mrbkap
This will allow us to skip the virtual function call for non-security-wrapper
proxies, which are the cases where we care most about performance.
2013-02-25 13:54:18 -08:00
Bobby Holley
f82f71bb85 Bug 836301 - Stop enter()ing with CALL for nativeCall. r=mrbkap
This is kind of nonsensical, because CALL means "the wrapped object is being
called", whereas nativeCall means "the wrapped object is being unwrapped to
have a JSNative invoked on it", which are two very different things.

We _could_ add a NATIVECALL enter() trap, but our current policy enforcement
around nativeCall involves overriding the trap itself, so we wouldn't use it
for anything. So let's just get rid of it.
2013-02-25 13:54:17 -08:00
Bobby Holley
22266c42fe Bug 836301 - Add Special handling to allow us to call enter() for defineProperty on Xrays. r=mrbkap 2013-02-25 13:54:17 -08:00
Bobby Holley
3cd9119770 Bug 836301 - Stop using JSRESOLVE_ASSIGNING to determine GET vs SET. r=mrbkap
This is just a heuristic, anyway, and some of the usage is downright broken.
There are two cases here:

1 - Deciding what to do for get{Own,}PropertyDescriptor. In these cases, we can
just enter with GET and rely on the filtering machinery to filter out dangerous
setters for security wrappers.

2 - Custom Xray props. None of these make sense in a |set| context. In fact,
    they generally have null setters anyway, so we can just assume GET.

The policy-entering code in XrayWrapper is super haphazard. We'll get rid of it
entirely later in these patches.
2013-02-25 13:54:17 -08:00
Bobby Holley
6406390443 Bug 836301 - Assert against JSID_VOID in JSID wrapping. r=mrbkap
Luke explained to me that it should never get there.
2013-02-25 13:54:17 -08:00
Daniel Holbert
f82fd42806 Bug 845021: Add size_t cast in assertion, to silence build warning, in ObjectWrapperChild::AnswerNewEnumerateNext. r=Waldo 2013-02-25 13:46:56 -08:00
Kannan Vijayan
4001489bf4 Bug 844253 - Change useNewType to be a flag on StackFrame instead of an explicitly passed argument. r=bhackett 2013-02-25 15:15:38 -05:00
Bobby Holley
076b7bfcfa Bug 843711 - Fix up new |Components| culprits in test suite. r=mccr8 2013-02-25 10:43:03 -08:00
Eddy Bruel
8ba018572b Bug 757188 - Implement Script.getAllColumnOffsets; r=jorendorff 2013-02-25 15:16:39 +01:00
Nicholas D. Matsakis
2790eb157e Bug 843684 - Patch up include to avoid compilation warnings when JS_THREADSAFE is not defined r=njn 2013-02-25 08:06:48 -05:00
Phil Ringnalda
5b691fd773 Back out 0fc2a36c23d8 (bug 844253) for bustage
CLOSED TREE
2013-02-24 22:52:40 -08:00
Kannan Vijayan
9432092846 Bug 844253 - Change useNewType to be a flag on StackFrame instead of an explicitly passed argument. r=bhackett 2013-02-25 00:57:39 -05:00
Nicholas Nethercote
2a71afa141 Bug 843462 (part 3) - Use a Vector to build the bytecode. r=jorendorff.
--HG--
extra : rebase_source : b5f266d41f94daf626540f40986f22a1f26c0556
2013-02-20 21:13:28 -08:00
Nicholas Nethercote
68ebdcecbf Bug 843462 (part 2) - Use a Vector to build the source notes. r=jorendorff.
--HG--
extra : rebase_source : 57d50732d55b9e73bad04ec0c01b58b20de275b3
2013-02-20 21:13:26 -08:00
Nicholas Nethercote
9f21892a79 Bug 843462 (part 1) - Make Vector::insert() less error-prone. r=luke.
--HG--
extra : rebase_source : 8cc2ba2a01d7d4970aacb7728bb2936ea473dcf5
2013-02-20 21:13:25 -08:00
Nicholas Nethercote
a5b0f7906e Bug 843999 - Shrink the property cache. r=bhackett.
--HG--
extra : rebase_source : a05435c289528619856b70665453703a628c3790
2013-02-24 14:15:23 -08:00
Peter Van der Beken
60efffbed9 Fix for bug 844225 (Remove some DOMCI and quickstubs). r=bz. 2013-01-10 10:54:46 +01:00
Nicholas D. Matsakis
af92dee354 Bug 843684 - Add ParallelDo() r=dvander 2013-02-19 08:57:32 -05:00
Nicholas D. Matsakis
4abc9bdca7 Bug 843684 - Bring over self-hosted intrinsics r=till,dvander 2013-02-19 09:22:35 -05:00
Gregory Szorc
73dc3f3f6d Backout cc13b2fc76c0 (bug 843015) for crashes on Android and B2G 2013-02-23 23:48:54 -08:00
Marty Rosenberg
4fb7debecd Bug 843015: The Extended ldr instructions have a smaller maximum offset (255). Actually respect these limits. (r=sstangl) 2013-02-24 00:40:28 -05:00
Jim Blandy
ef259d0058 Bug 822923: make JS shell's 'evaluate' handle compilation errors without leaking source-map URL names. r=jorendorff 2013-02-23 21:22:01 -08:00
Nicholas D. Matsakis
1e570ae0ee Bug 843656 - Fixup callee in JM jitcode prologue for callsite clones r=dvander 2013-02-20 16:33:38 -08:00
Nicholas D. Matsakis
da39cbb5af Bug 843656 - move clone-at-callsite to the script r=bhackett 2013-02-19 10:49:33 -05:00
Masatoshi Kimura
58be2f3664 Bug 842372 - Part 2: Hide getUserData and setUserData from content. r=bz 2013-02-23 13:46:06 +09:00
Shu-yu Guo
051b517fa6 Bug 843884 - Pass execution mode through to inline IonBuilder (r=nmatsakis) 2013-02-22 13:51:51 -08:00
Shu-yu Guo
6a3fed7e52 Bug 843743 - Check return value of JSObject::setElement in UnsafeSetElement (r=nmatsakis) 2013-02-22 13:51:50 -08:00
Benoit Girard
75c4cfd49c Bug 767231 - Part 1: Add GTest. r=ted 2012-05-22 13:45:24 -07:00
Jim Blandy
5323204d18 Bug 827581: Unify JS_GetStringCharsZAndLength with JS_GetStringCharsAndLength. r=wmccloskey 2013-02-22 16:07:14 -08:00
Brian Hackett
4d3abc486e Bug 843937 - Specialize on eval(name + "()"), r=jandem. 2013-02-22 17:01:23 -07:00
Brian Hackett
d71d21d919 Bug 843875 - Don't use converted value for result of array assigns that require double conversion, r=jandem. 2013-02-22 16:58:31 -07:00
David Anderson
ea720cbbcb Revert previous change to YARR (bug 824856, r=sstangl). 2013-02-21 14:52:20 -08:00
Ryan VanderMeulen
1b1d4736df Merge m-c to inbound. 2013-02-22 12:45:21 -05:00
Ryan VanderMeulen
30ea044f55 Merge the last PGO-green inbound changeset to m-c. 2013-02-22 12:42:58 -05:00
Gregory Szorc
e18a5a8dfd Merge mozilla-central into build-system 2013-02-22 08:15:12 -08:00
Gregory Szorc
21c12f5774 Bug 784841 - Part 13: Properly normalize topsrcdir in config.status; r=glandium 2013-02-21 10:55:55 -08:00
Chuck Lee
e45fb52048 Bug 835719 - 0003. Rename JSAutoByteString.encode() to encodeLatin1(). r=terrence 2013-02-21 17:48:17 +08:00
Chuck Lee
4d6e622ba9 Bug 835719 - 0001. Support encode string to UTF-8 byte array. r=terrence 2013-02-22 10:58:52 +08:00
Jonathan Kew
e04415fc7f backout cset 4ede352670cd (bug 759585) on a CLOSED TREE on suspicion of making windows reftests so slow that they timeout and burn 2013-02-22 09:36:41 +00:00
Bill McCloskey
a9bd163faa Bug 816033 - Disable ecma_5/extensions/JSON-string-replacer-overflow.js on Windows debug builds 2013-02-21 21:54:35 -08:00
Nicholas Nethercote
8c25c7c6b8 Bug 842419 (part 8) - Reduce the arity of SRC_CATCH from 1 to 0. r=jorendorff.
--HG--
extra : rebase_source : 25b167dbbe39c673b9b7b66ef09b2d33e923c2a7
2013-02-20 17:42:22 -08:00
Nicholas Nethercote
97b0a14e50 Bug 842419 (part 7) - Split SRC_SWITCH in two. r=jorendorff.
--HG--
extra : rebase_source : c91557416354c9d8003ce9f1b481c09d7eca867b
2013-02-20 17:42:22 -08:00
Nicholas Nethercote
28db687f13 Bug 842419 (part 6) - Reduce the arity of three loop-related srcnotes, and remove another. r=jorendorff.
--HG--
extra : rebase_source : 1bd7092dd1bd116752c2817844e7351448b91d4d
2013-02-20 17:42:21 -08:00
Nicholas Nethercote
bfe7258189 Bug 842419 (part 5) - Reduce the arity of SRC_IF_ELSE from 2 to 1. r=jorendorff.
--HG--
extra : rebase_source : f892b0ca7e18f48332156f6c541a3bc6696b7332
2013-02-20 17:42:21 -08:00
Nicholas Nethercote
bd3d571ae7 Bug 842419 (part 4) - Clean up srcnote constants and js_SrcNoteSpec. r=jorendorff.
--HG--
extra : rebase_source : 2340657e4bdd1a0c47151ffdc0b6ad55f6b99792
2013-02-20 17:42:21 -08:00