Commit Graph

31423 Commits

Author SHA1 Message Date
Ms2ger
ae98068e9f Merge m-c to b-s. 2013-02-26 19:09:25 +01:00
Hannes Verschore
75dc1d52dd Bug 843866: IonMonkey: Make sure inference ran before inlining empty script, r=jandem 2013-02-26 11:20:03 +01:00
Gregory Szorc
ddaecc3b88 Merge mozilla-central into build-system
Only conflict was configure.in amd was due to context, not
changed lines themselves.
2013-02-25 22:09:18 -08:00
Brian Hackett
3387ac245c Bug 841530 - Tweaks to fit JIT inspector after the decompilerectomy, r=pierron. 2013-02-25 15:31:49 -07:00
Gregory Szorc
551576109a Bug 784841 - Part 19: Remove allmakefiles.sh and friends; r=ted 2013-02-25 14:09:16 -08:00
Gregory Szorc
55ee1a778a Bug 784841 - Part 18s: Convert /js; r=glandium 2013-02-25 12:47:22 -08:00
Gregory Szorc
4f2ec7f83b Bug 784841 - Part 18e: Convert /build, /config, and core build system; r=ted 2013-02-25 12:47:18 -08:00
Gregory Szorc
d1c16e2633 Bug 784841 - Part 16: Use moz.build files to build the tree; r=ted, glandium 2013-02-25 12:47:11 -08:00
Nicholas D. Matsakis
2771b6a82f 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
Ed Morley
8244206ad0 Backed out changeset d9d90bf85bcf (bug 845569) for bug839758.js assertions 2013-02-27 10:31:18 +00:00
Ehsan Akhgari
68bb0cc6bf Bug 780474 - Disable the struct/class mismatch warning on MSVC as well; r=glandium 2013-02-25 12:10:41 -05:00
Brian Hackett
2724d49737 Bug 844482 - Watch for OOM disabling TI under CreateThisForFunction, r=dvander. 2013-02-25 15:21:13 -07:00
Brian Hackett
e43dc5ebab Bug 844364 - Fix bogus assertion, inverted test when compiling JSOP_EVAL, r=jandem. 2013-02-25 15:17:12 -07:00
Bobby Holley
098471a0cb 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
f10e33a90c Bug 836301 - Hoist enter() calls from {Xray,}Wrapper::foo into Proxy::foo. r=mrbkap 2013-02-25 13:54:18 -08:00
Bobby Holley
437a0a3edf 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
a365e284ec Bug 836301 - Hoist enter() into BaseProxyHandler. r=mrbkap 2013-02-25 13:54:18 -08:00
Bobby Holley
1674c379d6 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
b62e4b24d7 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
f205495a48 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
fd29a31b36 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
80a387a9cf 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
751164d5c1 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
Phil Ringnalda
b95847f7db Back out 0fc2a36c23d8 (bug 844253) for bustage
CLOSED TREE
2013-02-24 22:52:40 -08:00
Kannan Vijayan
7d92a0cc9c 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
868452e591 Bug 843462 (part 3) - Use a Vector to build the bytecode. r=jorendorff. 2013-02-20 21:13:28 -08:00
Nicholas Nethercote
c14dcefd59 Bug 843462 (part 2) - Use a Vector to build the source notes. r=jorendorff. 2013-02-20 21:13:26 -08:00
Nicholas Nethercote
5062f213fc Bug 843462 (part 1) - Make Vector::insert() less error-prone. r=luke. 2013-02-20 21:13:25 -08:00
Gary Kwong
18c3ba4c41 Bug 845569 - Land tests for various bugs. r=terrence 2013-02-27 10:40:01 -08:00
Jim Blandy
bb78d3c018 Bug 841998: JS GDB support: Make prettyprinters.lookup_for_objfile cope with non-SpiderMonkey objfiles correctly. r=sfink 2013-02-27 09:30:02 -08:00
Bob Clary
ebe90254ce Bug 845770 - Change fails-if(Android) js date tests to random-if(Android), r=jmaher. 2013-02-27 06:52:06 -08:00
Nicholas Nethercote
40852bc53f Bug 843999 - Shrink the property cache. r=bhackett. 2013-02-24 14:15:23 -08:00
Kannan Vijayan
3f1980d09b 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
L. David Baron
b071eaef68 Bug 404077: Adjust annotations of expected assertions. CLOSED TREE 2013-02-27 17:58:48 -08:00
Bobby Holley
f855226354 Bug 843711 - Fix up new |Components| culprits in test suite. r=mccr8 2013-02-25 10:43:03 -08:00
Eddy Bruel
b1f6c654d2 Bug 757188 - Implement Script.getAllColumnOffsets; r=jorendorff 2013-02-25 15:16:39 +01:00
Peter Van der Beken
6b2f4ca983 Fix for bug 844225 (Remove some DOMCI and quickstubs). r=bz. 2013-01-10 10:54:46 +01:00
Nicholas D. Matsakis
ce64f7fe96 Bug 843684 - Add ParallelDo() r=dvander 2013-02-19 08:57:32 -05:00
Nicholas D. Matsakis
39a4376a0f Bug 843684 - Bring over self-hosted intrinsics r=till,dvander 2013-02-19 09:22:35 -05:00
Gregory Szorc
9a19e318f3 Backout cc13b2fc76c0 (bug 843015) for crashes on Android and B2G 2013-02-23 23:48:54 -08:00
Marty Rosenberg
ead39442fe 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
2b14f422ff 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
e27b1e85cf Bug 843656 - Fixup callee in JM jitcode prologue for callsite clones r=dvander 2013-02-20 16:33:38 -08:00
Nicholas D. Matsakis
fdd472f431 Bug 843656 - move clone-at-callsite to the script r=bhackett 2013-02-19 10:49:33 -05:00
L. David Baron
c7cac4a446 Bug 404077: Use navigator.platform.startsWith rather than navigator.platform.indexOf, at Jesse's suggestion. 2013-02-26 22:23:08 -08:00
Luke Wagner
bec043d418 Bug 845458 - IonMonkey: simplify constant double handling on x86 (r=dvander) 2013-02-26 19:56:30 -05:00
Bobby Holley
7477ec6b93 Bug 845201 - Pass mayThrow=true to iterate. r=mrbkap
We only want fallback behavior here if the policy decides to fail silently. If
the policy passes *bp == false, we want to just throw.
2013-02-26 16:41:55 -08:00
Gary Kwong
dcef02e542 Bug 845569 - Land tests for various bugs. r=terrence 2013-02-26 15:31:04 -08:00
Shu-yu Guo
05e0deaf12 Bug 845016 - Inline Math.abs with double input and int output (r=sstangl) 2013-02-26 14:51:43 -08:00
David Anderson
3b492bce34 Prevent GC from occuring during IC linking (bug 837714, r=bhackett). 2013-02-21 13:52:09 -08:00