Commit Graph

10610 Commits

Author SHA1 Message Date
Blake Kaplan
b9ceb8ebe5 bug 580128 - Prepare objects for wrapping. r=peterv 2010-09-17 14:54:41 -07:00
Blake Kaplan
a55f43f1f0 bug 580128 - Allow calling functions cross origin. r=gal 2010-09-17 14:54:40 -07:00
Blake Kaplan
8a04a08f4f bug 580128 - Make the Window constructor be defined on new windows. r=peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan
c0cb068948 Bug 580128 - Preliminary fixes to make .wrappedJSObject on XrayWrappers work. Overridden by later patches. r=gal 2010-09-03 19:24:23 -07:00
Blake Kaplan
cfd8caf51b bug 580128 - Temporary fixes to XrayWrapper - note: these were mostly overridden by later patches. r=gal 2010-09-02 16:02:51 -07:00
Blake Kaplan
2316129cdc bug 580128 - Make AccessCheck work (fixing bad calls/missing assumptions). r=gal/peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan
0d477e8a1f bug 580128 - The rewrap hook needs to know what parent to use when creating wrappers. r=gal 2010-09-17 14:54:40 -07:00
Blake Kaplan
0e7a7f5511 bug 580128 - Create a proxy for the outer window and use it. Note: this turns on new wrappers for all objects. r=peterv 2010-09-17 14:54:40 -07:00
Blake Kaplan
cfc2a1a543 bug 580128 - Don't assume that we have a wrapped native object here. r=gal 2010-09-17 14:54:40 -07:00
Blake Kaplan
3c355b8fa0 bug 580128 - Give API consumers a way to perform "brain transplants" on an object. r=gal 2010-09-17 14:54:40 -07:00
Blake Kaplan
5bc789b070 Bug 580128 - Give objects a way to inform XPConnect that they implement their own JS object in a way that does not involve wrapped natives. r=peterv 2010-09-17 14:54:40 -07:00
Luke Wagner
07202b774d Remove unnecessary padding from JSStackFrame 2010-10-08 22:58:33 -07:00
Robert Sayre
ba8adf47b3 Merge mozilla-central to tracemonkey. 2010-10-08 21:56:00 -04:00
Luke Wagner
c556237dc1 Bug 578916 - Cache results of Math.sin() (r=waldo) 2010-10-06 12:13:20 -07:00
Luke Wagner
69cfb82e89 Bug 601296, part 3 - speedup FindReplaceLength - inline JS_GetEmptyStringValue (r=cdleary) 2010-10-04 11:45:56 -07:00
Luke Wagner
d8b5c15f9b Bug 601296, part 2 - speedup FindReplaceLength - don't copy RegExpStatics (r=cdleary) 2010-10-04 11:45:34 -07:00
Luke Wagner
48daa0557a Bug 601296, part 1 - speedup FindReplaceLength - inline js_ValueToString (r=cdleary) 2010-10-04 11:45:34 -07:00
Luke Wagner
cbc9601aa0 Bug 581893 - build a js::Invoke Gatling gun (r=waldo) 2010-09-28 15:23:43 -07:00
Gregor Wagner
1f3d45495c Bug 600139 - Delayed marking can skip marking live objects r=igor 2010-10-08 16:25:57 -07:00
Brendan Eich
91c97f62fa Clean up JSOP_DEFFUN and duplicated methodjit StubCall logic, fixing latent arguments override bug (602621, r=igor). 2010-10-07 13:52:58 -07:00
David Mandelin
996e09cfb5 Bug 602744: fix test case for JSOP_BEGIN with trap, r=dvander 2010-10-07 18:59:18 -07:00
David Mandelin
3024f662e3 Bug 602003: add jsd API to query valid script begin and end PCs, r=sayrer,jjb 2010-10-06 11:23:14 -07:00
Jason Orendorff
a214519d8f Bug 592664, Epilogue: caching eval scripts that we will never use again is necessary to avoid leaking them. rs=Waldo. (Note that my 4 previous commits today were all for bug 592664, not "592644" as the commit messages say.)
--HG--
extra : rebase_source : e7337a31313a4ef3d2d676be41291c832afa4c15
2010-10-07 19:15:45 -05:00
David Mandelin
50f3df9d0e Backed out changeset af020f2b9293 due to x64 build bustage. 2010-10-07 17:03:01 -07:00
David Mandelin
544d2fb3f2 Bug 602003: add jsd API to query valid script begin and end PCs, r=sayrer,jjb 2010-10-06 11:23:14 -07:00
David Mandelin
22817a28df Remove obsolete declarations for functions never defined or called 2010-10-07 16:33:40 -07:00
Nicholas Nethercote
63201dff5e Bug 601009 - TM: allow for guards that always exit. r=dmandelin. 2010-10-07 15:51:57 -07:00
Jeff Walden
490ed1946a Bug 600128 - Properly record attempted addition of properties to non-extensible objects. r=jimb
--HG--
extra : rebase_source : af730b39d1f5d6b299e74278ec22d1920ec96e2c
2010-09-28 17:09:40 -07:00
Jeff Walden
9361db8ece Bug 601307 - Add a test for directness of the eval in |with (...) eval(...)| (assuming eval is the global eval function). r=jimb
--HG--
extra : rebase_source : 9a6b233cd99a3f9016c760f1249497d5a39d0c55
2010-10-01 18:40:11 -07:00
Jason Orendorff
44405a40a0 Bug 592644 - ES5 indirect eval. Part 2, factor out EvalCacheLookup and other misc. cleanup. r=brendan. 2010-10-07 15:01:45 -05:00
Jason Orendorff
b0245eb593 Back out changeset 7598b7ab2e76.
--HG--
extra : rebase_source : e3571c6433d01e53ba31639d4dc082ced93775f0
2010-10-07 15:35:08 -05:00
Brendan Eich
47bac3fdd5 Back out my last push (599009 botched followup). 2010-10-07 13:17:03 -07:00
Jason Orendorff
725599b967 Bug 592644 - ES5 indirect eval. Part 2, factor out EvalCacheLookup and other misc. cleanup. r=brendan.
--HG--
extra : rebase_source : 6c0dfea58dbbe3d9ce7aa6315b4c9c17c253a03a
2010-10-07 15:01:45 -05:00
Jason Orendorff
fdb2a0d1c5 Bug 592644 - ES5 indirect eval. Part 1, add support and tests. r=brendan.
--HG--
extra : rebase_source : 5d07f3e847b2adfb46f30f343af2e06d494012c3
2010-10-07 15:00:09 -05:00
Brendan Eich
084feb5c3f Nit-picks, mainly localizing and initializing the oldAttrs var, on patchwork for bug 599009 (r=bz). 2010-10-07 11:33:23 -07:00
Dave Herman
85db64ec81 bug 584787, r=pcwalton: Node shouldn't subclass Array 2010-10-07 10:59:45 -07:00
Boris Zbarsky
a69bdff134 Another bug 599009 followup. Don't assert things about uninitialized quantities. 2010-10-07 13:58:51 -04:00
Boris Zbarsky
31e1c63e5b Bug 599009 followup. Fix typo in assert. 2010-10-07 11:03:41 -04:00
Boris Zbarsky
4ebf2b027a Bug 599009. Don't use setProperty for JSOP_DEFFUN unless there's already a property with that name around, to work around the fact that setProperty will define with class-default getter and setter while we always want to define with stub getter and setter if we can. r=igor 2010-10-07 09:18:53 -04:00
Johnny Stenback
e0377cb0a6 Fixing bustage. 2010-10-06 19:50:46 -07:00
Andreas Gal
ea58e77c7b GetPropertyByName doesn't deep bail (602415, r=dvander). 2010-10-06 19:30:02 -07:00
Robert Sayre
012db2a6ae Merge mozilla-central to tracemonkey. 2010-10-06 18:48:56 -07:00
Nicholas Nethercote
5fca2f1eb1 Bug 599251 - nanojit: make Register a non-numeric type (TM-specific part). r=edwsmith. 2010-10-06 17:39:28 -07:00
Chris Jones
b9c731f6ce Bug 602393: Fix idiotic mistake causing JITs to be blacklisted on all android devices. r=dvander a=blocking-fennec-b1+ 2010-10-06 19:39:19 -05:00
Nicholas Nethercote
72a4aabfd5 Update nanojit-import-rev stamp. 2010-10-06 17:28:51 -07:00
Nicholas Nethercote
9e870a8e7b Bustage fix: add new file that was accidentally omitted for bug 599251.
--HG--
extra : convert_revision : 661718b83d398aa4c91f522f7d08ef5cea8e20a9
2010-10-06 15:51:01 -07:00
Nicholas Nethercote
2f1f5115bb Bug 599251 - nanojit: make Register a non-numeric type. r=edwsmith.
--HG--
extra : convert_revision : c7275693cde4c740f1a53ab73b9ec1963f6fe0cc
2010-10-06 15:30:56 -07:00
Nicholas Nethercote
753fbd4232 Fix compiler warning. No bug, r=jwalden via IRC. 2010-10-06 16:16:11 -07:00
Nicholas Nethercote
4592f12901 Bug 593931 - inline js_GetPropertyHelper() and friends more aggressively. r=cdleary. 2010-10-06 16:14:01 -07:00
Chris Leary
de62ad1b1c Fix trace_tests.py when showing output. (r=jorendorff) 2010-10-06 15:15:54 -07:00
Chris Leary
9ae5e5cf0f Bug 596775: re-enable YARR-JIT on ARM. (r=vladimir) 2010-10-05 18:20:06 -07:00
Jason Orendorff
60ab838ce4 Back out changeset 89006937466d (crashing tests on tinderbox). 2010-10-06 15:51:14 -05:00
Jason Orendorff
a55c843052 Bug 592644 - Indirect eval should be allowed under ES5. r=brendan. 2010-10-06 15:11:30 -05:00
Tom Schuster
537c5775ed Bug 601689 - Optimize GetArrayElement for arguments objects (r=lw)
--HG--
extra : rebase_source : 6360a47b95660da477a1f312ab8654a23e4019c1
2010-10-06 12:04:31 -07:00
Bill McCloskey
5ad8ad87f8 Fix trap instruction in trace-test, bump XDR version (r=dvander) 2010-10-06 11:58:33 -07:00
David Anderson
bf2b73455a Fix assert in InvokeConstructor (bug 602088, r=luke). 2010-10-06 11:06:18 -07:00
Bill McCloskey
05473d29a8 Bug 601986 - Make blockchain determination faster for with, flat closures (r=igor) 2010-10-06 10:41:36 -07:00
Bill McCloskey
7bfd4bbd01 Bug 601398 - Use new instructions, rather than source notes, to obtain block chain (r=igor) 2010-10-06 10:40:07 -07:00
Luke Wagner
d46bab180a Bug 601733 - respect deleted arguments-object properties in JSOP_GETELEM (r=dvander,dmandelin) 2010-10-06 10:09:40 -07:00
Sean Stangl
a725810965 Define isOOLPath if JaegerSpew is enabled. 2010-10-06 00:46:21 -04:00
Boris Zbarsky
0ede7a0b3c Bug 601968. Trace call(null). r=gal, a=sayrer 2010-10-06 00:00:28 -04:00
David Mandelin
7160d3fa59 Bug 601256: optimize access to globals in global eval using GNAME ops, r=dvander
--HG--
extra : rebase_source : 7c4bd486cc9dff1c65eda717fe34dd0fc36fe171
2010-10-05 11:02:05 -07:00
David Anderson
b84b230fa4 Don't build debug structures if not in debug mode (bug 596804, r=dmandelin). 2010-10-05 17:15:06 -07:00
David Anderson
dfffa5d871 Fix crash in AtSafePoint (bug 589398, r=dmandelin). 2010-10-05 16:41:06 -07:00
David Mandelin
d3637a9f66 Bug 595963: notify iterators about property deletion in array_splice, r=gal
--HG--
extra : rebase_source : de2700e0d3d7bce1453a73155c569d28cfbd4482
2010-10-01 11:12:01 -07:00
Nicholas Nethercote
081f38712d Bug 601771 - TM: possibly uninitialized variable in jsclone.cpp. r=jorendorff via IRC. 2010-10-05 14:50:15 -07:00
Luke Wagner
407b2242d7 Bug 598682, part 2 - Minor cleanups to jsinterp.h and jsinterpinlines.h (r=bhackett)
--HG--
extra : rebase_source : bd664d9cd752992faa280d8d3a848058883f57e4
2010-10-05 14:41:58 -07:00
Jim Blandy
b423689891 Bug 598682, part 1 - Minor cleanups to jsinterp.h and jsinterpinlines.h (r=lw)
--HG--
extra : rebase_source : ce5adce0b4f5155afd958f2a083085baf4dbe643
2010-10-05 14:41:55 -07:00
Luke Wagner
e5b2d0d102 Bug 601505 - Error instances don't have [[Construct]] (r=brendan)
--HG--
extra : rebase_source : 12c4c0432ca571f57993cabe3309810cfa3866d1
2010-10-04 16:22:26 -07:00
Sean Stangl
fc6775cf30 Eliminate syncData() constant hack. b=601657, r=dvander. 2010-10-05 17:08:01 -04:00
Robert Sayre
19a4f7ab74 Merge mozilla-central to tracemonkey. 2010-10-05 13:30:17 -07:00
Bill McCloskey
f4da25ad41 Bug 601393 - Ensure that js_EmitTree decrements emitLevel (r=brendan) 2010-10-05 10:49:27 -07:00
Bill McCloskey
08406461bb Bug 601537 - Add a reminder about JSXDR_BYTECODE_VERSION (r=brendan) 2010-10-05 10:47:11 -07:00
David Anderson
36107152d8 Don't trace apply with overridden argsobj length (bug 541191, r=dmandelin). 2010-10-05 10:25:41 -07:00
Gregor Wagner
e911cb2f1c Bug 600310 - TM: don't perform GC outside of stack quota r=igor 2010-10-05 10:09:50 -07:00
Brendan Eich
ce672b15a0 Long day... 2010-10-04 21:19:30 -07:00
David Anderson
bcab33d20b Bustage fix for bug 589398 new opcode fallout. 2010-10-04 20:24:43 -07:00
Makoto Kato
57fde966f8 Bug 601355 - follow up bug 587707. Crashes consistently at start-up except if JM is disabled or in safe mode. r=bhackett1024, r=dvander 2010-10-05 12:14:44 +09:00
Nicholas Nethercote
67b1a56500 Bug 600781 - TM: untangle TraceRecorder::getCharAt. r=dvander. 2010-10-04 19:57:15 -07:00
Brendan Eich
846b01b1ee Burned by JSOPTION_ANONFUNFIX again. 2010-10-04 19:23:39 -07:00
David Anderson
552330f091 ICs for scripted new (bug 589398, r=luke,dmandelin).
--HG--
extra : rebase_source : d7311ce916e8d6c876d1851090806bc7d073bd63
2010-10-04 14:13:33 -07:00
Brendan Eich
d86c28ef95 More old test hacking in wake of 445319. 2010-10-04 18:41:32 -07:00
Brendan Eich
3639d7c0a5 Forgot the test for 600137. 2010-10-04 18:30:04 -07:00
Brendan Eich
920dbc6d33 Adjust js1_5/extensions/regress-369696-02.js in wake of 445319 fix. 2010-10-04 17:53:28 -07:00
Brendan Eich
3cbbab0c68 Test for bug 600137 (fixed by patch for 445319). 2010-10-04 16:54:22 -07:00
Brendan Eich
853d03c5d2 Per ECMA-262, no .prototype for built-in functions and Function.prototype (445319, r=Waldo). 2010-10-03 22:46:39 -07:00
Nicholas Nethercote
538c2b1e48 merge 2010-10-04 16:37:37 -07:00
Nicholas Nethercote
43903d8289 Update nanojit-import-rev stamp. 2010-10-04 16:16:10 -07:00
Nicholas Nethercote
a029d9af78 Fix non-Linux compile bustage for bug 601539. r=me.
--HG--
extra : convert_revision : 12776aa248b916be646dd7b9c760be1b3fa7ba8a
2010-10-05 09:52:40 +11:00
Nicholas Nethercote
d03914abb0 Bug 601539 - nanojit: fix bogus generation of suffix names in LIR dumps. r=rreitmai.
--HG--
extra : convert_revision : 2c66185d4d358f589fc1fe44f48e4c7eafe1a0c1
2010-10-04 15:40:32 -07:00
David Anderson
6dbf424efd Backed out changeset de5d1b528b9a 2010-10-04 15:12:00 -07:00
David Anderson
6ddd3429fc ICs for scripted new (bug 589398, r=luke,dmandelin). 2010-10-04 14:13:33 -07:00
Sean Stangl
0d02e95a3d Fix pinReg() around copyDataIntoReg() in jsop_bitop(). b=600419, r=dvander. 2010-10-04 13:30:46 -04:00
Alan Pierce
39060e35d5 Check for OOM in js_ConcatStrings(). b=596988, r=gal,sstangl; rs=brendan. 2010-10-03 23:20:12 -04:00
Brendan Eich
d29d510a74 Need to JS_CHECK_RECURSION in GetTrap as well as Trap (aslo rename GetTrap wrappers to start with Get; 589103, r=gal). 2010-10-03 14:59:26 -07:00
Brian Hackett
d73a0b5f82 Lazify fp->scopeChain, JM call path cleanup. bug 593882, r=lw,dvander. 2010-10-03 08:21:38 -07:00
Jeff Walden
9153149565 Bug 577757 - array[-1073741824] != array["-1073741824"]. r=igor 2010-09-30 21:03:47 -07:00
Jeff Walden
e7c07cd3ad Bug 539766 - Object.defineProperty sets arguments.length without setting the length-overridden bit. r=brendan 2010-09-30 17:50:40 -07:00
Jason Orendorff
b7f8952992 Bug 600193 - trace-test/tests/jaeger/bug588363-1.js asserts with CompartmentChecker enabled. r=gal.
This makes eval(s) an indirect eval if the eval-function being called is in a
different compartment from the caller's scope chain.

This caused the eval in trace-test/tests/jaeger/bug588363-2.js to become
indirect, which caused the test to fail with a ReferenceError. So I changed the
test to delete the sandbox's eval, revealing the global eval underneath.
2010-09-29 10:00:52 -07:00
Jason Orendorff
135b59bccb Bug 600287 - Indirect eval should use callee's global, not the this-argument. r=brendan. 2010-10-02 10:08:59 -05:00