Gary Kwong
5cf6e9aa04
Bug 845569 - Land tests for various bugs. r=terrence
2013-02-27 10:40:01 -08:00
Jim Blandy
7ea994bd5d
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
25a528bdb3
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
8fde6d3a97
Backed out changeset d9d90bf85bcf (bug 845569) for bug839758.js assertions
2013-02-27 10:31:18 +00:00
L. David Baron
49b7670edf
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
a8e0a1a69c
Bug 845458 - IonMonkey: simplify constant double handling on x86 (r=dvander)
2013-02-26 19:56:30 -05:00
Bobby Holley
2b5b1bffe9
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
8282715391
Bug 845569 - Land tests for various bugs. r=terrence
2013-02-26 15:31:04 -08:00
Shu-yu Guo
9c3ffe3bd0
Bug 845016 - Inline Math.abs with double input and int output (r=sstangl)
2013-02-26 14:51:43 -08:00
David Anderson
68d9b3d62a
Prevent GC from occuring during IC linking (bug 837714, r=bhackett).
...
--HG--
extra : rebase_source : 4973d1be905775ea5623dbe808a034659e8c7797
2013-02-21 13:52:09 -08:00
Nicholas D. Matsakis
976d8ee64e
Bug 845226 - Move inlined functions into jsscriptinlines.h r=dvander
2013-02-26 16:42:43 -05:00
Jim Blandy
90e65845c7
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
0063b3589d
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
a3d357830c
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
d381f677ac
Bug 648980 - Add a hook for projects to have custom configure scripts. r=glandium
...
--HG--
extra : rebase_source : e020071adc89e07fd45d468aabe518027df7ba44
2013-02-26 13:45:52 -06:00
Bobby Holley
75c19cf6e0
Bug 834732 - Assert proper cx stack handling in WrapperFactory::Rewrap. r=mrbkap
2013-02-26 11:04:13 -08:00
Bobby Holley
917b9b02b4
Bug 834732 - Implement stricter cx handling in xpc_EvalInSandbox. r=mrbkap
2013-02-26 11:04:11 -08:00
Bobby Holley
321002c62d
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
d2ef489c30
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
03f7f4b219
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
e3812b3710
Bug 841666 - Use exponent over-estimation to truncate operations. r=h4writer
2013-02-26 10:54:26 -08:00
Nicolas B. Pierron
53573c675f
Bug 844305 - Check that excluded type are included before generating guards. r=bhackett
2013-02-26 10:43:32 -08:00
Nicolas B. Pierron
3bd0bd475d
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
efb6d5492c
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
bf593b3710
Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 11). r=jwalden
...
--HG--
extra : rebase_source : 4de3e1ccf4c5f5809ff517ac7190ea411119dac3
2013-02-22 15:31:09 -08:00
Norbert Lindenberg
a6357c3246
Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 10). r=jwalden
...
--HG--
extra : rebase_source : 5e68b2c9aaa862152a80d870f0379d81db98fead
2013-02-22 15:31:07 -08:00
Norbert Lindenberg
78bf555c82
Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 9). r=jwalden
...
--HG--
extra : rebase_source : f87af76e895dc145e73d0df0e44aec931ec1ffdf
2013-02-22 15:30:28 -08:00
Norbert Lindenberg
26561239d9
Bug 769872 - Add self-hosted JavaScript core of Intl constructors Collator, NumberFormat, DateTimeFormat (part 8). r=jwalden
...
--HG--
extra : rebase_source : 7d583e686ae7c2f830971e7282b5f1754d2c57f9
2013-02-22 15:30:09 -08:00
Bobby Holley
481e815158
Bug 812693 - Remove GetJSObjectOfWrapper. r=mrbkap
2013-02-26 08:15:44 -08:00
Brian Hackett
adb6d6b80e
Bug 835587 - Add syntax only mode to parser, r=jorendorff.
2013-02-26 08:41:57 -07:00
Jan de Mooij
5909fc59dd
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
7067f66e5d
Bug 843866: IonMonkey: Make sure inference ran before inlining empty script, r=jandem
2013-02-26 11:20:03 +01:00
Daniel Holbert
b62c4bbb26
Bug 845222: Remove unused private field Loop::graph. r=jandem
2013-02-26 00:06:37 -08:00
Marty Rosenberg
a52453d3d6
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
41740b527d
Bug 842482 - Don't try to guess typedarray initializer type with missing script; r=bhackett
...
--HG--
extra : rebase_source : cace8e3f6c79b0f330a9385b96c1680e3bfbc966
2013-02-25 22:26:37 -08:00
Trevor Saunders
7c86473ca0
bug 833164 - consolodate the various makeDepend things in the tree r=ted
2013-02-14 07:06:16 -05:00
L. David Baron
a8ee400190
Bug 404077: Annotate known assertions in mochitests.
2013-02-25 18:39:21 -08:00
Daniel Holbert
ba4c24c2cb
Bug 845117 - Mark js/ipc as FAIL_ON_WARNINGS. r=smaug
2013-02-25 20:45:41 -05:00
Brian Hackett
5fe9eeef8d
Bug 841530 - Tweaks to fit JIT inspector after the decompilerectomy, r=pierron.
2013-02-25 15:31:49 -07:00
Ehsan Akhgari
e0ecd62fb0
Bug 780474 - Disable the struct/class mismatch warning on MSVC as well; r=glandium
...
--HG--
extra : rebase_source : 3e593b71e589df349abc41f9182739305478690f
2013-02-25 12:10:41 -05:00
Brian Hackett
a9b7937e44
Bug 844482 - Watch for OOM disabling TI under CreateThisForFunction, r=dvander.
2013-02-25 15:21:13 -07:00
Brian Hackett
b7f111bf33
Bug 844364 - Fix bogus assertion, inverted test when compiling JSOP_EVAL, r=jandem.
2013-02-25 15:17:12 -07:00
Bobby Holley
0c9994db1d
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
59d3c6c36d
Bug 836301 - Hoist enter() calls from {Xray,}Wrapper::foo into Proxy::foo. r=mrbkap
2013-02-25 13:54:18 -08:00
Bobby Holley
d916a1015e
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
be3814c47e
Bug 836301 - Hoist enter() into BaseProxyHandler. r=mrbkap
2013-02-25 13:54:18 -08:00
Bobby Holley
ea8d501a0c
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
4591fd0a3d
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
e969932415
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
141e362856
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