Commit Graph

19712 Commits

Author SHA1 Message Date
Peter Van der Beken
629bad9698 Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
--HG--
extra : rebase_source : 26d0508b8a11d75164ae4b27af8c64e8845166f9
2012-07-16 16:52:59 +02:00
Luke Wagner
8b3f68b81c Bug 753158 - emit ALIASEDVAR ops for upvars (r=bhackett)
--HG--
extra : rebase_source : 1e868b37de87f94799500019cc13e7b8abe3c0f3
2012-07-05 20:35:08 -07:00
Luke Wagner
789ba7816e Bug 753158 - Don't resolve uses to defs that cross non-top-level function statements (r=dvander)
--HG--
extra : rebase_source : 36331b2b862186f224c2edaf3d9a8d23a079269a
2012-07-16 17:09:52 -07:00
Jeff Walden
1cf3018b6e Bug 773850 - Refactor method guarding to be able to work for methods that must be able to accept a |this| which is a proxy. r=luke
--HG--
extra : rebase_source : 1a015ffd3faa9fa6c82426c94058bce026602f8c
2012-07-03 17:44:22 -07:00
Nick Fitzgerald
a80c9584f6 Bug 774464: Don't delete the sourceMapMap just because the 'putNew' operation failed. r=jimb 2012-07-16 15:09:55 -07:00
Jim Blandy
a44571a10b (No bug): js/src/frontend/Parser.cpp:Parser::comprehensionTail returns pointers, not bools. r=luke in IRC 2012-07-16 13:41:03 -07:00
Rafael Ávila de Espíndola
899f483355 Bug 774120 - #ifdef fields only used in debug builds. r=terrence. 2012-07-16 16:39:31 -04:00
Kannan Vijayan
c0173da404 Bug 773731 - Fix UseNewType pattern matching. (r=bhackett) 2012-07-16 15:36:12 -04:00
Kannan Vijayan
c155e8a30e Backed out changeset 8837ebfb3045 - wrong bug number. 2012-07-16 15:33:51 -04:00
Alex Crichton
3b5b3af87f Bug 774343 - Move the JS shell SPS assertion so the browser can use it. r=luke 2012-07-16 10:55:25 -07:00
Ed Morley
c23835f558 Backout 29104ecddc3a (bug 769464) for crashtest assertions 2012-07-16 18:49:14 +01:00
Ed Morley
5c5b8e26a9 Merge mozilla-central to mozilla-inbound 2012-07-16 18:32:39 +01:00
Gabor Krizsanits
d5f97a1ca6 Bug 771081 - part3: Rename WaiveXrayWrapperWrapper. r=gal 2012-07-16 19:28:17 +02:00
Lukas Blakk
1d83c46b16 Merging in version bump NO BUG 2012-07-16 10:08:20 -07:00
Gabor Krizsanits
a9011adbd5 Bug 771081 - part2: Rename CrossOriginWrapper files. r=gal
--HG--
rename : js/xpconnect/wrappers/CrossOriginWrapper.cpp => js/xpconnect/wrappers/WaiveXrayWrapper.cpp
rename : js/xpconnect/wrappers/CrossOriginWrapper.h => js/xpconnect/wrappers/WaiveXrayWrapper.h
2012-07-16 19:22:51 +02:00
Gabor Krizsanits
c39841ecfc Bug 771081 - part1: Rename CrossOriginWrapper. r=gal 2012-07-16 17:53:16 +02:00
Peter Van der Beken
f6f14ba82b Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
--HG--
extra : rebase_source : 1bdf15c06e0e1e89a877a0f74300bf212de5b60e
2012-07-16 16:52:59 +02:00
Kannan Vijayan
3bb745a1fc Bug 77373 - Fix UseNewType pattern matching. (r=bhackett) 2012-07-16 10:36:48 -04:00
Neil Rashbrook
bb10a629a3 Bug 772303 Followup to simplify SkipRoot constructor so that it doesn't confuse VC2008 r=bhackett 2012-07-16 14:06:49 +01:00
Bill McCloskey
c4bd3603ac Bug 774104 - Add a read barrier when rooting JS objects (r=mccr8) 2012-07-15 14:37:15 -07:00
Bill McCloskey
2d2b45b384 Bug 774104 - Purge allocating arenas when incremental GC starts (r=mccr8) 2012-07-15 14:37:04 -07:00
Bill McCloskey
a5c4000a5d Bug 774104 - Avoid leaks during JS_TransplantObject (r=mccr8) 2012-07-15 14:36:58 -07:00
Ryan VanderMeulen
a997433ec6 Merge m-c to inbound. 2012-07-14 08:48:58 -04:00
Olli Pettay
6e882d2abe Bug 773803 - Remove nsIScriptObjectOwner, r=bz
--HG--
rename : dom/base/nsIScriptObjectOwner.h => dom/base/nsIScriptEventHandlerOwner.h
2012-07-14 01:23:59 +03:00
Ryan VanderMeulen
d60cdd471e Backout 3923d008386d (bug 753158) due to various regressions. 2012-07-13 23:48:08 -04:00
Jeff Walden
317033d088 Fix another obvious typo to make MutableHandle<Value> a friend of ValueOperations<MutableHandle<Value>> and MutableValueOperations<MutableHandle<Value>>. Followup to bug 773049, r=sparky
--HG--
extra : rebase_source : af69f1a76d4bd73fc9c87f778e4bd509242c78ea
2012-07-13 12:04:33 -07:00
Brian Hackett
ce1a73badb Fix rooting hazard in eval cache, no bug. r=billm 2012-07-13 14:03:52 -06:00
Brian Hackett
02aac91b9c Add more rooting for --enable-rootanalysis tbpl builds, bug 772303. r=terrence 2012-07-13 10:13:50 -06:00
Jan de Mooij
b116530f36 Bug 773586 - Initialize PICGenInfo::pc and clean up ICs a bit. r=bhackett 2012-07-13 15:32:25 +02:00
Bobby Holley
473b4a8aa9 Bug 763343 - Handle classinfo singletons in cross-compartment wrapping. r=peterv 2012-07-13 14:33:25 +02:00
Bobby Holley
f3dc2d0945 Bug 771202 - Add a PostTransplant nsIXPCScriptable hook. r=peterv 2012-07-13 10:55:14 +02:00
Ryan VanderMeulen
21fa0501b6 Merge m-c to inbound. 2012-07-14 00:01:46 -04:00
Eric Faust
8144c1a6fd Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett) 2012-07-11 20:55:19 -07:00
Jeff Walden
4f246dc2cd Bug 773049 - Fix a comment typo noted by terrence over IRC, DONTBUILD to save resources. r=lumpy 2012-07-12 16:42:26 -07:00
Benjamin Peterson
73d526b592 Bug 773115 - Remove unneeded needStrictChecks() call. r=njn 2012-07-12 19:28:54 -04:00
Benjamin Peterson
b2b5c0b8eb Bug 772012 - When the rest parameter aliases a function and defaults are present, don't try to set the rest parameter. r=jorendorff 2012-07-12 19:28:54 -04:00
Jeff Walden
f63867b624 Bug 773049 - Implement the Value interface in MutableHandle<Value> and Rooted<Value> (in addition to Handle<Value> and EncapsulatedValue which already manually implemented it), consolidating the Value interface bits in ValueOperations and MutableValueOperations classes using CRTP. r=bhackett
--HG--
extra : rebase_source : 436385599a7f071792c2d14037e1a1c639427c4f
2012-07-12 03:01:59 -07:00
Luke Wagner
7caedb2531 Bug 773108 - Avoid overflowing blockid in CompExprTransplanter (r=dvander) 2012-07-11 22:07:25 -07:00
Brian Hackett
3341919684 Add more rooting for interpreter, TI and JIT, bug 772303, r=terrence. Also disable Windows PGO for RegExp.cpp because the compiler is broken. 2012-07-12 12:36:27 -06:00
Luke Wagner
2d1787a065 Bug 753158 - emit ALIASEDVAR ops for upvars (r=bhackett)
--HG--
extra : rebase_source : 53c280967abc57f5a19e7dbc1dcfacc0603b202b
2012-07-05 20:35:08 -07:00
Luke Wagner
f6e3b26c60 Bug 753145 - Attach static scope nesting information to scripts (r=jimb)
--HG--
extra : rebase_source : 0eaf04cf7f302308ce7f76c2012f75195e41f1bf
2012-07-03 10:24:36 -07:00
Luke Wagner
27666e8af3 Bug 767750 - rm JSScript::evalHashLink (r=njn)
--HG--
extra : rebase_source : 6cbf87dc2cbc23c60ee278b9fd3b64b0936517bc
2012-07-03 10:24:35 -07:00
Luke Wagner
4a53eceac9 Bug 765956 - Remove the non-reentrant closure optimization (r=bhackett)
* * *
imported patch fix-debugger-for-non-reentrant-removal

--HG--
extra : rebase_source : d77f8e19d0674726fb4078a73b6a3cb57ac91d73
2012-07-03 10:24:35 -07:00
Luke Wagner
e3d25b3ca4 Bug 765956 - Set Bindings' parent eagerly (r=bhackett)
--HG--
extra : rebase_source : 4f907c3e3692199033813539b173189d760b4a7c
2012-06-20 08:57:29 -07:00
Luke Wagner
ae21a32922 Bug 771039 - assert some invariants in BindNameToSlot (r=dvander)
--HG--
extra : rebase_source : 9d0ba59ce4042bad88a7882b58b33f5f7b9ac19f
2012-07-05 20:29:24 -07:00
Luke Wagner
79954471dd Bug 771039 - fix CompExpTransplanter to correctly fix up implicit arguments definitions in generator expressions (r=dvander)
--HG--
extra : rebase_source : 27ac2ef2f61894272c5186eca8a77e54af286150
2012-07-08 04:35:09 -07:00
Jeff Walden
4527b9419d Remove a stray semicolon that causes a warning compiling pretty much any SpiderMonkey file. No bug, r=themaid 2012-07-12 10:53:43 -07:00
Ed Morley
c258987354 Backout 6bbf3f22bb5d (bug 753158), 38a703b244c2 (bug 753145), c9a5dfa1b07d (bug 767750), cd782fd66995 & 6cf7aa93994c (bug 765956), 0253f34f6bc2 & 41d5c8529748 (bug 771039),94f6bf99a4aa (bug 766447),fad7d06d7dd5 (bug 772303) for winxp pgo-only jsreftest failures (caused by fad7d06d7dd5) and the rest for conflicts, on a CLOSED TREE 2012-07-12 13:04:51 +01:00
Bobby Holley
4262204785 Bug 601277 - Better tests for document.domain. r=mrbkap 2012-07-12 10:10:15 +02:00
Bobby Holley
15d867f5bd Bug 655649 - Stop doing dynamic security checks for document.domain. r=mrbkap 2012-07-12 10:10:15 +02:00
Bobby Holley
4a5e0d850d Bug 655649 - Use Subsumes Rather than Equals in XPConnect wrapper computation. r=mrbkap
Now that we have nsExpandedPrincipal, the current way of doing things is wrong. For some reason, the old document.domain hackery was hiding the failures here.
2012-07-12 10:10:15 +02:00
Benjamin Peterson
7430390c8b Bug 773153: don't use operand context when looking for line end. r=njn 2012-07-12 00:03:25 -07:00
Mike Hommey
882d156651 Bug 763651 - Link the javascript engine against zlib. r=khuey 2012-07-12 08:30:59 +02:00
Luke Wagner
3405e5ff71 Bug 753158 - emit ALIASEDVAR ops for upvars (r=bhackett)
--HG--
extra : rebase_source : 73a1f673c0bcceb93dbe9e86acd8a99fbe3fb005
2012-07-05 20:35:08 -07:00
Luke Wagner
e0090c353d Bug 753145 - Attach static scope nesting information to scripts (r=jimb)
--HG--
extra : rebase_source : c2608319ab0c6a1668c1ec130569867d2013e0a4
2012-07-03 10:24:36 -07:00
Luke Wagner
93d5a7d1e8 Bug 767750 - rm JSScript::evalHashLink (r=njn)
--HG--
extra : rebase_source : 64101b0dbe1a8246e043637dca7469016362f62d
2012-07-03 10:24:35 -07:00
Luke Wagner
a04ba6b197 Bug 765956 - Remove the non-reentrant closure optimization (r=bhackett)
* * *
imported patch fix-debugger-for-non-reentrant-removal

--HG--
extra : rebase_source : d534ed39a2ae3e245588288391759744f2081bde
2012-07-03 10:24:35 -07:00
Luke Wagner
2ea5b818d8 Bug 765956 - Set Bindings' parent eagerly (r=bhackett)
--HG--
extra : rebase_source : 198757535745ab10f4bba192b163d38768e7260b
2012-06-20 08:57:29 -07:00
Luke Wagner
b90004edef Bug 771039 - assert some invariants in BindNameToSlot (r=dvander)
--HG--
extra : rebase_source : fb7cbfa0cfcfd612c67cfc4961609ad424b59a1d
2012-07-05 20:29:24 -07:00
Luke Wagner
6de85bc9d0 Bug 771039 - fix CompExpTransplanter to correctly fix up implicit arguments definitions in generator expressions (r=dvander)
--HG--
extra : rebase_source : b28f0c1eefe5ca6c17b1a39a4034abe6b9041747
2012-07-08 04:35:09 -07:00
Phil Ringnalda
a3254c05d8 Back out 5eacd4fc78e4 (bug 772722) for mochitest-4 shutdown crashes 2012-07-11 22:23:56 -07:00
Eric Faust
356d4133e7 Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett) 2012-07-11 20:55:19 -07:00
Terrence Cole
96fa483e47 Bug 772722 - Remove superfluous usage of Atomics in SpiderMonkey; r=luke
None of the current usages of ATOMIC_INC/DEC are useful now that we do not allow
multi-threaded runtimes. This also removes a pre-mature optimization that
happened to be using the atomics. I measured it as saving strictly < 3us on old
hardware.
2012-07-11 14:32:00 -07:00
Alex Crichton
d0f7efe4f6 Bug 772078 - Remove JS entries even when stopping the SPS profiler. r=luke 2012-07-11 16:23:52 -07:00
Steve Fink
ef6c2fe0ab Backed out changeset d99d8b4d0eeb (bug 769192) for mochitest-3 bustage
--HG--
extra : rebase_source : 0c44009fc689b0b95da0c7fdac401a1755fb8fca
2012-07-11 15:32:26 -07:00
Brian Hackett
11ef2e39ab Add more rooting for interpreter, TI and JIT, bug 772303. r=terrence 2012-07-11 16:22:41 -06:00
Steve Fink
ca260a8f0c Bug 769192 - Typed array accessors should not use JSPROP_READONLY. r=Waldo
--HG--
extra : rebase_source : 5055b1618b876db58c219512e0168dad28104344
2012-07-11 11:54:56 -07:00
Steve Fink
abbac876f4 Bug 758106 - Intentionally leak poisoned pointers when using rooting analysis. r=bhackett
--HG--
extra : rebase_source : d0eb52bd01bb64111c32e1f491435f5c731a9647
2012-07-11 11:54:48 -07:00
Terrence Cole
3b84f6595f Backed out changeset 9dc4e44365c4 2012-07-11 14:10:02 -07:00
Terrence Cole
3da73432b9 Bug 772722 - Remove superfluous usage of Atomics in SpiderMonkey; r=luke
None of the current usages of ATOMIC_INC/DEC are useful now that we do not allow
multi-threaded runtimes. This also removes a pre-mature optimization that
happened to be using the atomics. I measured it as saving strictly < 3us on old
hardware.
2012-07-11 13:49:51 -07:00
Gregor Wagner
29007fc7cc Bug 765435 - Make JS heap growth factor depend on the heap size after a GC and GC frequency. r=billm 2012-07-11 11:09:53 -07:00
Eddy Bruel
38a59d2484 Bug 771908 - Get rid of Wrapper::leave; r=bholley, sr=mrbkap 2012-07-11 14:01:10 +02:00
Boris Zbarsky
ab6fc58420 Bug 771429. Instead of using bound functions for the functions we get off the sandbox proto, use a function proxy. That allows property gets on the functions to get through. r=bholley 2012-07-13 19:29:13 -04:00
Sean Stangl
eaac31e12c Bug 285615 - Define and implement JS_ClearDateCaches() API. r=waldo 2012-07-13 15:56:08 -07:00
Benjamin Peterson
2728dc575c Bug 772691 - Disallow XML in function defaults. r=njn 2012-07-10 21:41:00 -04:00
Andrew McCreight
745479e48c Bug 704623 - Track memory used by orphan DOM nodes. code=mccr8,njn. r=njn,mccr8.
--HG--
extra : rebase_source : f4a4b6e1b1de35a08e86130110a6fbd588093867
2012-04-20 14:01:33 +10:00
Brian Hackett
6cee4cb673 Add more rooters, bug 772303. r=billm 2012-07-10 19:17:29 -06:00
Luke Wagner
1a6a842c35 Bug 770737 - Make JSContext::global() return Handle<GlobalObject*> (r=billm)
--HG--
extra : rebase_source : af8f4c7461cc07d4ebc34ddff0a801432fa27ddd
2012-07-10 16:14:59 -07:00
Luke Wagner
6e190f1cda Bug 771998 - add Handle<Value> specialization that is better suited for Value (r=billm)
--HG--
extra : rebase_source : b52fd5f8f6dda2343d1e4266dee6385ae9ef7a7a
2012-07-10 15:48:07 -07:00
Luke Wagner
b844e5f326 Bug 772285 - rm JSPD_ARGUMENT/JSPD_VARIABLE (r=sfink)
--HG--
extra : rebase_source : 7be9ea3e5e90be9abd65f7d5268741e453cc717b
2012-07-10 15:34:12 -07:00
Jeff Walden
21b5bf2015 Bug 771743 - Remove generator_op and have the methods that call it do their work manually. r=luke 2012-07-06 15:35:59 -07:00
Jeff Walden
45a0d67909 Bug 771744 - Remove num_toStringHelper in favor of including its functionality in callers (most of which don't even need all its functionality!). r=luke 2012-07-06 17:45:14 -07:00
Jeff Walden
84a701e5d9 Bug 771744 - Move declarations from the start of num_toLocaleString throughout the method, for better readability. r=luke 2012-07-06 17:30:06 -07:00
Jeff Walden
9dd9c8edba Bug 771744 - Remove num_to, and fold its functionality into its callers, for greater clarity and readability, and to move method-guarding code to the start of each user method. r=luke 2012-07-06 17:21:18 -07:00
Jeff Walden
c6282b8739 Bug 771946 - Convert most of the internal Date functions to work in terms of doubles, and add a ton of assertions to verify proper time clipping, integerization, etc. r=luke 2012-07-09 14:28:20 -07:00
Cameron Kaiser
80b6ddf595 Bug 771320 - Use payloadOf/PAYLOAD_OFFSET when constructing PIC stubs. r=bhackett 2012-07-10 18:31:04 -04:00
Neil Rashbrook
01d1ceb4dc Bug 770182 Warn when preprocessing unnecessarily r=bsmedberg 2012-07-10 22:01:08 +01:00
Ehsan Akhgari
e846cefb4b Backout changeset 3a7ece100089 (bug 770182) because of make check failures 2012-07-10 15:41:43 -04:00
Neil Rashbrook
2fd055d5d2 Bug 770182 Warn when preprocessing unnecessarily r=bsmedberg 2012-07-10 19:51:53 +01:00
Takanori MATSUURA
e0c70804c3 Bug 772507 - Add vpx/vpx_encoder.h and vpx/vp8cx.h to system-headers files. r=bsmedberg 2012-07-10 10:51:18 -07:00
Terrence Cole
cc3721d151 Bug 772314 - Replace NSPR's interval timer with PRMJ_Now; r=luke
PR_IntervalTime offers no extra functionality above PRMJ_Now for our uses.
2012-07-09 18:40:27 -07:00
Ehsan Akhgari
2f3a60bae4 Remove some extra trailing semicolons (no bug) 2012-07-10 12:41:44 -04:00
Ehsan Akhgari
d614994c06 Remove some extra trailing semicolons (no bug) 2012-07-10 12:41:07 -04:00
Benjamin Peterson
a4f426e747 Bug 769072: retroactively apply strict mode to defaults. r=njn 2012-07-09 23:43:06 -07:00
Benjamin Peterson
89b57a32dc Bug 769072: increase tokenizer lookahead to 3. r=njn 2012-07-09 23:41:59 -07:00
Benjamin Peterson
8a473230cb Bug 772012: create a CompileError class. r=njn 2012-07-09 23:41:56 -07:00
Chris Peterson
20427d3456 Bug 772210 - Fix warning: unused variable 'initFlushCount'. r=luke 2012-07-09 10:10:30 -07:00
Jim Blandy
7b2623417b Bug 769754: Debugger handler functions should not corrupt the debuggee's JSContext::iterValue. r=jorendorff 2012-07-09 13:19:09 -07:00
Jason Orendorff
10179097ca Back out changeset ac870e3e94f3 due to red on m-i. 2012-07-09 14:39:50 -05:00
Jason Orendorff
3d5f824484 Back out changeset a88ce0cbdba6 due to red on m-i. 2012-07-09 14:38:49 -05:00