Commit Graph

36873 Commits

Author SHA1 Message Date
Jeff Walden
c2dc0fc542 Back out 44347cbdf6a0 for triggering jsapi-test orange. r=bustage 2013-07-17 22:55:49 -07:00
Norbert Lindenberg
f66a20d134 Bug 891974 - Test ecma_3/Date/15.9.5.5-02.js fails; partially roll back the buggy commit for bug 890076 to fix. r=jwalden
--HG--
extra : rebase_source : 60a3a1241a98c32e7ffd7b332193bc985b72ac57
2013-07-17 12:21:26 -07:00
Jeff Walden
1fc3e1139c Bug 894653 - Self-host Error.prototype.toString, and fix an edge-case bug in the current implementation. r=till
--HG--
extra : rebase_source : 0d89b9c899accedd3a23841be850c83e33ec59b6
2013-07-17 12:14:39 -07:00
Jeff Walden
fb3d74dd53 Bug 894653 - Make the IsObject self-hosted utility function actually correct. r=till
--HG--
extra : rebase_source : 3cdd7454efa3c5029b3bc908162c1f54547f4c7d
2013-07-16 15:57:57 -07:00
Jeff Walden
64982b30df Bug 891177 - Implement mozilla/Vector.h, and make js/Vector.h implement js::Vector using mozilla::Vector's implementation of the functionality. r=terrence
--HG--
rename : js/public/Vector.h => mfbt/Vector.h
extra : rebase_source : d5f87a48485e3f2241228a4b003e80974c86fd5f
2013-07-09 16:33:29 -07:00
Jeff Walden
7c8d6dea3e Bug 891177 - Remove Vector.h's js/TemplateLib.h dependency by introducing mfbt/TemplateLib.h with the necessary bits. r=terrence
--HG--
extra : rebase_source : e84231171d6bd6c1e2de8201b8c9563375723d01
2013-07-08 12:42:13 -07:00
Jeff Walden
bd2a9b148b Bug 891177 - Remove Vector.h's js/Utility.h dependency. r=terrence
--HG--
extra : rebase_source : d9be649a097b3b9b92cd62685d0fadfa8c0e2bc4
2013-07-03 16:07:43 -07:00
Jeff Walden
9248a5e743 Bug 891177 - Move leading/trailing-zero-bit counting functions, ceiling/floor log2 functions, and round-up-pow2 functions into MathAlgorithms.h. r=terrence
--HG--
extra : rebase_source : 8cfbd68b8cd4a0e21185dd864c7e827ccfa6b751
2013-07-03 15:46:51 -07:00
Benjamin Bouvier
d53bbbd723 Bug 894781 - Set implicit truncate for MAbs only for int32 in asm.js mode; r=luke
--HG--
extra : rebase_source : e3bb8353d3e65181e35577f732482a961e88a061
2013-07-17 14:12:43 -07:00
Wes Kocher
22e70403d7 Backout 95a4b87a0583 (bug 894948) for causing an octane-crypto regression on a CLOSED TREE 2013-07-17 19:01:03 -07:00
Bobby Holley
181585f9f6 Bug 887334 - Enter a compartment in b2g-only unloading code. r=me CLOSED TREE 2013-07-17 14:28:54 -07:00
Ryan VanderMeulen
f4bca4443b Backed out changeset 76e7ef98a9d1 (bug 867856) for jit-test failures.
CLOSED TREE
2013-07-17 15:54:44 -04:00
Bobby Holley
ea9654afe8 Bug 887334 - Reorder some bookkeeping and assert in setCompartment that both the old and new compartments are marked as entered. r=luke 2013-07-17 11:53:55 -07:00
Bobby Holley
8b708dc2b7 Bug 887334 - Require cx->compartment() to be null when destroying a context. r=luke
If it's non-null, that means we've got a JSAutoCompartment on the stack, which
is going to run into trouble when it tries to restore the old compartment on
the now-dead cx.
2013-07-17 11:53:54 -07:00
Bobby Holley
ff0c7b6de9 Bug 887334 - Stop setting the compartment to defaultCompartmentObject_->compartment(). r=luke
With this change, defaultCompartmentObject_ is just an opaque (though traced)
piece of embedder state on the cx.
2013-07-17 11:53:54 -07:00
Bobby Holley
c42175edc2 Bug 887334 - Fix JSAPI test harness to not fail when the initial compartment is null. r=luke
I don't know why it's done this way, but it sure needs to change.
2013-07-17 11:53:53 -07:00
Bobby Holley
055a4a328f Bug 887334 - Miscellaneous JSAutoCompartments. r=luke 2013-07-17 11:53:53 -07:00
Bobby Holley
676b2c13a5 Bug 887334 - Add a JSAutoCompartment to AutoCxPusher. r=luke,gabor
This should hopefully take care of any cases where consumers expect to be in
the default compartment.
2013-07-17 11:53:52 -07:00
Bobby Holley
230deafd5a Bug 887334 - Use the new AutoCompartment overload for the atoms compartment and remove AutoEnterAtomsCompartment. r=bhackett
We have to do some temporary hackiness to deal with some of the new PJS work.
This patch stays as true to the old world as possible, so that we can more
easily backport it.
2013-07-17 11:53:52 -07:00
Bobby Holley
2ea92e7e0c Bug 887334 - Don't rethrow in quickstubs if there's already an exception pending. r=luke 2013-07-17 11:53:52 -07:00
Bobby Holley
91ae5cf5ba Bug 887334 - Add a JSCompartment* to AutoCompartment and use it in JS_NewGlobalObject. r=luke
This gets rid of the wonky setCompartment usage in that function.
2013-07-17 11:53:52 -07:00
Bobby Holley
42413d79c9 Bug 887334 - Move faulty JSAutoRequest in initSelfHosting. r=luke
The call to JS_SetGlobalObject causes cx->compartment_ to be set to the self-
hosting global, which means that the JSAutoCompartment picks up that compartment
as the 'previous' compartment. So despite the attempt to restore things with
JS_SetGlobalObject at the end of the function, the JSAutoCompartment destructor
actually ends up leaving cx in the self-hosting global's compartment at the end
of this function. Moving the JSAutoCompartment construction above the call to
JS_SetGlobalObject fixes the problem.
2013-07-17 11:53:51 -07:00
Bobby Holley
4fca287d58 Bug 887334 - Null-check compartment() in JS_GetGlobalForScopeChain(). r=luke
cx->global() assumes a non-null compartment(). When we fix up various bugs
related to being in a compartment when we shouldn't be, we start to crash here.
Fix it.
2013-07-17 11:53:51 -07:00
Bobby Holley
a5537d985f Bug 887334 - Rejigger the string manipulation in OnJSContextNew to avoid depending on being in a compartment. r=luke
The current code makes calls that assume (implicitly, via assertions) that |cx|
is in a compartment, which isn't a valid assumption going forward.
2013-07-17 11:53:51 -07:00
Bobby Holley
0dec6f861d Bug 887334 - Remove AutoSwitchCompartment. r=luke
This thing is...yikes.
2013-07-17 11:53:50 -07:00
Nicolas B. Pierron
f48ca3065a Bug 867856 - Fix intermittent timeout of bug743094.js test case. r=h4writer 2013-07-17 11:51:19 -07:00
Nicolas B. Pierron
20f297af41 Bug 892426 - Add an additional temp-Register to SetElementIC. r=jandem 2013-07-17 11:51:19 -07:00
Till Schneidereit
c34df284ae Bug 894948 - Remove effectively-dead analysis-related code from interpreter. r=jandem
--HG--
extra : rebase_source : 037764b4c11746ee52d5347c76e2a5242b35afab
2013-07-17 19:21:10 +02:00
Luke Wagner
158f259125 Bug 882008 - OdinMonkey: fix subtraction to take doublish, rm Use (r=bbouvier)
--HG--
extra : rebase_source : 819570ab142518328aa41a1c6b81ffa0a5d7b96f
2013-07-02 11:38:43 -07:00
Luke Wagner
4d9c2c4063 Bug 880538 - LifoAlloc::release after parsing every function (r=bbouvier)
--HG--
extra : rebase_source : 9ead29e3dc5110f2b1f30c5218c41cbbc26555e5
2013-06-21 16:20:47 -07:00
Luke Wagner
a56331140a Bug 880538 - move 'hasDestructuringArgs' flag into the FunctionBox (r=bhackett)
--HG--
extra : rebase_source : d65025cd591c7faf9e64f4768da0b2b8352ee393
2013-06-28 10:29:58 -07:00
Luke Wagner
8e0205288c Bug 880538 - store a pointer from ParseContext to it's PNK_FUNCTION ParseNode (r=bhackett)
--HG--
extra : rebase_source : acb4b0e5d94d0c1777173a4b0f378c46591805b3
2013-06-28 10:29:58 -07:00
Luke Wagner
601b5bb5fc Bug 880538 - set pn->pn_funbox immediately (r=bhackett)
--HG--
extra : rebase_source : 11b265e64f8355989632bd2556ed119a397cb10a
2013-06-21 16:07:25 -07:00
Luke Wagner
186ba1036c Bug 880538 - OdinMonkey: don't create an IonContext in MacroAssembler (r=sstangl)
--HG--
extra : rebase_source : c949b8337141681eb983ca4792849a726a059e18
2013-06-28 10:29:57 -07:00
Luke Wagner
97e60f388e Bug 880538 - OdinMonkey: make a single pass over the parse tree (r=bbouvier)
--HG--
extra : rebase_source : c5aafde69f44906750d1d62d6878bfbab9e048ee
2013-06-13 11:48:47 -07:00
Ryan VanderMeulen
cc6b678858 Backed out 4 changesets (bug 893858, bug 868859, bug 886903) for Linux debug mochitest-other crashes on a CLOSED TREE.
Backed out changeset 0ded4854067b (bug 886903)
Backed out changeset ca8afb897e13 (bug 893858)
Backed out changeset c15f503a96cc (bug 868859)
Backed out changeset 6a788f399a7f (bug 868859)
2013-07-17 12:43:59 -04:00
Ed Morley
f785fd17e7 Backed out changeset ad74eb485a87 (bug 891695) for startup crashes on a CLOSED TREE 2013-07-17 17:18:11 +01:00
Dan Gohman
90cfd57081 Bug 891739 - IonMonkey: Make or_ and xor_ range analysis even more precise, and avoid calling js_bitscan_clz32 with a zero operand. r=nbp,waldo 2013-07-17 08:16:05 -07:00
Dan Gohman
23e808d116 Bug 891695 - IonMonkey: Avoid passing pointers by const reference. r=rpearl 2013-07-17 07:32:48 -07:00
Jan de Mooij
1c5f790e46 Bug 894447 - Avoid unnecessary monitor instructions and bailouts with JSOP_SETELEM accessing named properties and backout bug 894463. r=bhackett 2013-07-17 16:21:22 +02:00
Tom Schuster
c6c8f740f8 Bug 893858 - More testing for CPOWs and two small bug fixes. r=dvander 2013-07-17 09:27:49 -04:00
Shu-yu Guo
33daf36a24 Bug 894782 - Fix callsite cloning interaction with inline dispatch in Ion. (r=jandem) 2013-07-17 06:11:18 -07:00
Brian Hackett
7040cac9db Bug 894669 - Add analysis for finding variables unnecessarily entrained by inner functions, r=luke. 2013-07-16 18:54:47 -06:00
Ryan VanderMeulen
4acf421a02 Backed out changeset 56423bbe9a13 (bug 891695) because it didn't un-bust itself automagically. 2013-07-17 08:54:01 -04:00
Carsten "Tomcat" Book
0813e6c9d0 Relanding after backout Bug 891695 - IonMonkey: Avoid passing pointers by const reference. r=rpearl 2013-07-17 14:16:17 +02:00
Carsten "Tomcat" Book
8b33a5f903 Backed out changeset 5939320824b1 (bug 894242) "CLOSED TREE" 2013-07-17 10:36:12 +02:00
Mike Hommey
ee38231acc Bug 894242 - Make C++0x/C++11 mode of gcc/clang mandatory. r=ted 2013-07-17 16:19:25 +09:00
Mike Hommey
06f13c6bd6 Backout changeset cd67ffb5ca47 (bug 883381), effectively restoring bug 877937 2013-07-17 16:18:46 +09:00
Mike Hommey
19a4ba5c90 Bug 894240 - Fix pointer dereference in js::cli::OptionParser::extractValue. r=Waldo 2013-07-17 16:16:55 +09:00
Wes Kocher
da8562250d Backout 1372b813d76f (bug 891695) for suspicion of causing bustage on a CLOSED TREE
--HG--
extra : amend_source : 9e9d1d7792df7060a2d61d5e8721b67602e14451
2013-07-16 20:47:17 -07:00