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
Ed Morley
8244206ad0
Backed out changeset d9d90bf85bcf (bug 845569) for bug839758.js assertions
2013-02-27 10:31:18 +00: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
Nicholas D. Matsakis
de1b0cb496
Bug 845226 - Move inlined functions into jsscriptinlines.h r=dvander
2013-02-26 16:42:43 -05:00
Jim Blandy
1d0449e219
Bug 839313: Don't use a runtime value root to implement the 'customNative' property of 'it'. r=waldo
2013-02-26 11:48:44 -08:00
Jim Blandy
7bad31ce03
Bug 839313: In js/src/shell/js.cpp, Use JS_SET_RVAL, instead of assigning to *vp. r=waldo
2013-02-26 11:48:44 -08:00
Jim Blandy
b5fff4aa8c
Bug 839313: Replace JSVAL_VOID and similar constants with their JS::MumbleValue() equivalents. r=waldo
2013-02-26 11:48:43 -08:00
Joshua Cranmer
2144df7c20
Bug 648980 - Add a hook for projects to have custom configure scripts. r=glandium
2013-02-26 13:45:52 -06:00
Bobby Holley
2dd2ec25ef
Bug 834732 - Assert proper cx stack handling in WrapperFactory::Rewrap. r=mrbkap
2013-02-26 11:04:13 -08:00
Bobby Holley
700dea9871
Bug 834732 - Implement stricter cx handling in xpc_EvalInSandbox. r=mrbkap
2013-02-26 11:04:11 -08:00
Bobby Holley
f6920a0bac
Bug 834732 - Make nsCxPusher.Push(JSContext*) infallible. r=mrbkap
...
We leave the nsIDOMEventTarget* versions fallible for now, but this makes the
common case a lot simpler. Note that this means that pushing a null JSContext,
a bug, is no longer handled at runtime. But I think we should just assert
against it, since there are already callers that don't check the return value.
2013-02-26 11:04:11 -08:00
Bobby Holley
4b13cc3ad2
Bug 834732 - Remove PushBehavior. r=mrbkap
...
Now that we only have ALWAYS_PUSH and ASSERT_SCRIPT_CONTEXT, we have uniform
release-mode behavior everywhere. Remove the crap.
2013-02-26 11:04:11 -08:00
Bobby Holley
7570d65d99
Bug 834732 - Get rid of footgun bool param for nsCxPusher and use an explicit enum. r=mrbkap
...
The goal here is to get rid of this crap entirely, and make nsCxPusher always
push. But that's a scary change, so we do it in chunks. This patch, in particular,
should have zero behavioral change. This means preserving some very wrong behavior.
For instance, currently SafeAutoJSContext never pushes a damn thing, because the
safe JSContext doesn't have an associated nsIScriptContext. We preserve this
behavior, and in fact convert various similarly-buggy consumers to
SafeAutoJSContext, so that we can hoist the behavioral change into a subsequent
patch.
2013-02-26 11:04:09 -08:00
Nicolas B. Pierron
ab8c7bb80e
Bug 841666 - Use exponent over-estimation to truncate operations. r=h4writer
2013-02-26 10:54:26 -08:00
Nicolas B. Pierron
dbd632923a
Bug 844305 - Check that excluded type are included before generating guards. r=bhackett
2013-02-26 10:43:32 -08:00
Nicolas B. Pierron
2d3ab8e719
Bug 844059 - Prevent int-specialized GetElementIC to produce stub for float typed arrays. r=dvander
2013-02-26 10:40:19 -08:00
Rafael Ávila de Espíndola
876c03fb50
Bug 845277 - Asan builds burning with "js/src/jsproxy.h:346:7: error: visibility does not match previous declaration". r=bholley.
2013-02-26 11:43:13 -05:00
Norbert Lindenberg
6b6c0d705c
Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 11). r=jwalden
2013-02-22 15:31:09 -08:00
Norbert Lindenberg
38e8585ec2
Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 10). r=jwalden
2013-02-22 15:31:07 -08:00
Norbert Lindenberg
4ccdf45e5f
Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 9). r=jwalden
2013-02-22 15:30:28 -08:00
Norbert Lindenberg
cedfc58290
Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 8). r=jwalden
2013-02-22 15:30:09 -08:00
Bobby Holley
a93e541177
Bug 812693 - Remove GetJSObjectOfWrapper. r=mrbkap
2013-02-26 08:15:44 -08:00
Brian Hackett
11987ef777
Bug 835587 - Add syntax only mode to parser, r=jorendorff.
2013-02-26 08:41:57 -07:00
Jan de Mooij
6fecbddb95
Bug 844893 - Don't assert when two threads call getVMWrapper at the same time. r=luke
2013-02-26 13:49:44 +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
Daniel Holbert
45b10ba3a2
Bug 845222: Remove unused private field Loop::graph. r=jandem
2013-02-26 00:06:37 -08:00
Marty Rosenberg
01d0852711
Bug 843015: The Extended ldr instructions have a smaller maximum offset (255). Actually respect these limits. Also use paretheses correctly (r=sstangl)
2013-02-24 00:40:28 -05:00
Terrence Cole
5a9779f39c
Bug 842482 - Don't try to guess typedarray initializer type with missing script; r=bhackett
2013-02-25 22:26:37 -08:00
Trevor Saunders
aa2dac5b9f
bug 833164 - consolodate the various makeDepend things in the tree r=ted
2013-02-14 07:06:16 -05:00
L. David Baron
75fa8ac3f8
Bug 404077: Annotate known assertions in mochitests.
2013-02-25 18:39:21 -08:00
Daniel Holbert
94b92b6e99
Bug 845117 - Mark js/ipc as FAIL_ON_WARNINGS. r=smaug
2013-02-25 20:45:41 -05:00
Brian Hackett
3387ac245c
Bug 841530 - Tweaks to fit JIT inspector after the decompilerectomy, r=pierron.
2013-02-25 15:31:49 -07: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