Commit Graph

13100 Commits

Author SHA1 Message Date
Chris Leary
074bd0c596 Bug 595691, take 2: fix versioning across VM instances, remove _options. (r=luke,brendan,igor) 2011-01-27 02:54:58 -08:00
Andreas Gal
3c34eab945 Follow-up fix for bug 625559. 2011-01-26 19:19:33 -08:00
Blake Kaplan
8f27ca08f2 Catch chrome eval escaping into content (bug 625559, r=gal). 2011-01-26 18:28:49 -08:00
Jeff Walden
d1158ba854 Followup to change a no-longer-passed-by-us test after the last push for bug 497869. r=orange
--HG--
extra : rebase_source : de824bfb0a7d718e555a85cfad907fb42a5346c0
2011-01-26 16:46:25 -08:00
David Mandelin
618cf9a71d Bug 624041: skip elements deleted via shift or reverse in iteration, r=igor
--HG--
extra : rebase_source : 4e6862e68ee808b172c782412a2983ad0ea5ac4a
2011-01-10 18:39:46 -08:00
Jeff Walden
4c28b52d07 Oops, shell-only test. r=sparky 2011-01-25 11:48:32 -08:00
Luke Wagner
d7acf11bcb Bug 627959, part 3 - move dtoaCache into the compartment (r=billm)
--HG--
extra : rebase_source : 19f2f0bebdfa7f8b349086be18847ffeb834ef4e
2011-01-24 16:30:16 -08:00
Luke Wagner
acc89d7129 Bug 627959, part 2 - wrap exception in XPCThrower::ThrowExceptionObject (r=gal)
--HG--
extra : rebase_source : ea39e580d733130b63d0a71c19c32e773e50f50b
2011-01-24 16:30:16 -08:00
Luke Wagner
9ff73cbdc7 Bug 627959, part 1 - Also assert same compartment on strings (r=me)
--HG--
extra : rebase_source : c6d45ea9f46d68b12b03efd13192d4d217ed4783
2011-01-24 16:30:08 -08:00
Jeff Walden
55ae2cef53 Add tests for behavior of function statements inside with. r=tests
--HG--
extra : rebase_source : c8088e21fb5aeca0b8f62dd8364435ac67e6aa6e
2011-01-24 16:49:26 -08:00
Steve Fink
dc0764a56d Improve comment. Related to bug 627943.
--HG--
extra : rebase_source : ba7505cfd9c0b1957172ba12a0fd39f44050916f
2011-01-24 23:16:48 -08:00
Steve Fink
f448c5faf9 Bug 627516 - Unconditionally #include assembler/wtf/Platform.h to fix crash with --disable-methodjit, r=cdleary
--HG--
extra : rebase_source : cffc3a025b7f32111f97a6853fc5555282568ffe
2011-01-20 14:03:51 -08:00
Steve Fink
afccee8a2d Bug 627943 - Bad ordering of exception save/wrap/restore, r=gal
--HG--
extra : rebase_source : bc2bdd4af8c4639456a8a7c77f8a0353e44ac1d2
2011-01-21 17:32:00 -08:00
Chris Leary
1771b7c232 Backed out changeset b88172246b66 due to Win32 debug failures. 2011-01-25 04:11:47 -08:00
Chris Leary
b462e1fb98 Bug 595691: fix versioning across VM instances, remove _options. (r=luke,brendan,igor) 2011-01-25 02:33:27 -08:00
Andreas Gal
390064e4c9 Trigger appropriate proxy trap for Object.getOwnPropertyNames (bug 628333, r=jwalden). 2011-01-24 22:39:58 -08:00
Chris Leary
a490c5bc24 Merge mozilla-central and tracemonkey. (a=blockers) 2011-01-24 19:47:52 -08:00
Chris Leary
e41aa73d24 Back out changeset 72cb2f4a893c 2011-01-24 19:45:08 -08:00
Andreas Gal
6629b9fa11 Trigger appropriate proxy trap for Object.getOwnPropertyNames (bug 628333, r=jwalden). 2011-01-24 16:10:54 -08:00
Bill McCloskey
3b8a90ccae Bug 627475 - Fix missing return stmt for Android (fixes changeset 4031baed59f7) 2011-01-24 15:16:27 -08:00
Steve Fink
db1cdf9f0a Backed out changeset e13f3b909fa2 2011-01-24 15:12:18 -08:00
Steve Fink
c862f01fdc Backed out changeset 6dcf1547ea08 2011-01-24 15:11:58 -08:00
Steve Fink
937c639424 Backed out changeset 47678330818a 2011-01-24 15:11:34 -08:00
Steve Fink
08a1d24071 Backed out changeset 8743def9e748 2011-01-24 15:11:13 -08:00
Steve Fink
2dacef3f04 Backed out changeset b7e91bafdcd9 2011-01-24 15:10:52 -08:00
Steve Fink
31df3a402a Backed out changeset d54eac606dd7 2011-01-24 15:10:23 -08:00
Steve Fink
8beba6e0ff Backed out changeset c10e63cba3b6 2011-01-24 15:07:00 -08:00
Steve Fink
aa873a798d Improve comment. Related to bug 627943.
--HG--
extra : rebase_source : 66619f6ab6ed81dd0a7d01df5a03274229b5e12e
2011-01-24 14:43:39 -08:00
Steve Fink
b500ebd4d9 Bug 626830 - XPConnect should turn debugging off immediately, without waiting for a quiescent stack
--HG--
extra : rebase_source : 62a7bb8024313841b4c40c86ccaedd1ae9f56ad1
2011-01-24 13:24:52 -08:00
Steve Fink
e2145da10c Bug 626830 - Allow JSD to turn on debugging when no JS code is running, not just when XPConnect stack is completely empty, r=dmandelin
--HG--
extra : rebase_source : 3f177904d2708642dfec8d5937964ec8fc83427a
2011-01-24 13:21:18 -08:00
Steve Fink
65d69cfc54 Bug 627758 - Detect forced GC end case to fix jsd.off() giving NS_ERROR_NOT_AVAILABLE, r=dmandelin
--HG--
extra : rebase_source : 6525e0b9abca2b0096d3fe0d5b8248dcfaebe7ba
2011-01-20 22:10:54 -08:00
Steve Fink
431720e0ac Bug 626743 - Set debug mode for whole runtime, avoiding compartment-less contexts, r=dmandelin
--HG--
extra : rebase_source : 198e9c85fd8126ef0ec24eb390641ece2f2cd61e
2011-01-19 15:33:34 -08:00
Steve Fink
3046e8cfdb Bug 627516 - Unconditionally #include assembler/wtf/Platform.h to fix crash with --disable-methodjit, r=cdleary
--HG--
extra : rebase_source : 8381615c16097fd6eb86e63f7c59b7f33587b47c
2011-01-20 14:03:51 -08:00
Steve Fink
82dbc5d4cf Bug 627943 - Bad ordering of exception save/wrap/restore, r=gal
--HG--
extra : rebase_source : c317f6f3357885077c7182834d3b29412a5606f2
2011-01-21 17:32:00 -08:00
Bill McCloskey
d2d16afad0 Bug 627475 - Clean up methodjit OOM handling (r=dmandelin) 2011-01-24 14:36:34 -08:00
Bill McCloskey
bc4fee0689 Bug 610088 - Don't assert when DecompileValueGenerator called from script prologue (r=dmandelin) 2011-01-24 11:55:02 -08:00
Bill McCloskey
7cf78aa843 Backed out changeset f3b470fb91a9 (orange) for bug 623297 2011-01-24 11:18:53 -08:00
Bill McCloskey
b7ffccbd4b Bug 623297 - To decide JS_ON_TRACE, check the thread, not the compartment (r=gal) 2011-01-24 10:36:28 -08:00
Luke Wagner
75d92493c9 Bug 626526 - Change cx->busyArrays to use SystemAllocPolicy; avoid JSContext init subtleties (r=pbiggar) 2011-01-24 09:47:25 -08:00
Jeff Walden
388e0a33f7 Bug 497869 - Forbid let and yield in strict mode code in scripts which are not JS1.7 or greater (that is, any web script not explicitly opted into JS1.7+ with a <script type>). r=brendan 2011-01-24 07:26:26 -08:00
Jeff Walden
15fda24aa9 Bug 497869 - Future reserved words are syntax errors in strict mode. r=brendan 2011-01-22 17:46:22 -08:00
Jeff Walden
50cccbcec6 Bug 624110 - Properly traverse the scope chain over strict eval frames in the tracer. r=brendan 2011-01-10 13:09:07 -06:00
Jeff Walden
882117c5e3 Back out everything from the last several hours for turning into a disaster zone finally ending in total orange. r=return-to-sanity 2011-01-23 03:12:28 -08:00
Jeff Walden
91caba886f Fix redness. jsd being C and not C++ bites again! r=redness 2011-01-23 01:16:34 -08:00
Andreas Gal
0fc264ef3f Don't lose error condition in decompiler (bug 621988, r=brendan). 2011-01-22 23:30:30 -08:00
Jeff Walden
16cad291a3 Bug 624110 - Properly traverse the scope chain over strict eval frames in the tracer. r=brendan 2011-01-10 13:09:07 -06:00
Jeff Walden
a6a68a253b Bug 497869 - Future reserved words are syntax errors in strict mode. r=brendan 2011-01-22 17:46:22 -08:00
Rafael Ávila de Espíndola
61100744cd Bug 622144 - Code must #include <string.h> to use memset. r=dmandelin, a=shaver 2011-01-22 08:52:25 -08:00
async.processingjs@yahoo.com
648a3d0799 Bug 620869 - Unexpected failure in JavaScript shell if snarf() is used (r=jorendorff) 2010-12-21 21:03:00 -08:00
Paul Biggar
acf459a83c Bug 628332 - Don't double-free when a compartment is not properly allocated (r=billm)
If allocating a compartment fails, FinishJIT may be called twice. However,
there were not adequate precautions for this, and FinishJIT could free random
memory, or double-free memory. Deal with the former by ensuring that the
relevant pointers were zero-initialized, and the latter by overwriting freed
pointers with NULL.
2011-01-31 17:16:25 -08:00
Paul Biggar
12981d4dac Bug 618337 - Fix incorrect error message (r=dmandelin). 2011-01-31 17:16:25 -08:00
Jeff Walden
40e165aec3 Bug 577325 - Implement function definition per ES5 plus errata (still with support for our extensions, of course). r=igor
--HG--
extra : rebase_source : d058ad2eefc16d4c7b35e74fd6b10e18bedc0ab0
2010-11-01 17:04:19 -07:00
Andreas Gal
927855f788 Cache eval CSP check (bug 614137, r=mrbkap, a=dmandelin). 2011-01-22 14:28:37 -08:00
Andreas Gal
08e5edc6f1 Bug 613515 - JS properties set from chrome are lost. r=mrbkap@gmail.com, a=blocker 2011-01-18 16:47:22 -08:00
David Anderson
16e6f63bd7 Fix SetGlobalName checking for getters instead of setters (bug 625438, r=jorendorff). 2011-01-21 14:25:51 -08:00
Jason Orendorff
d7e1af0d61 Bug 617609 - Upvar analysis marks functions as NULL_CLOSURE incorrectly. r=brendan. 2011-01-21 13:22:26 -06:00
Jason Orendorff
f0e29a0abe Add js_CheckForStringIndex call to trace recorder path for JSOP_INITPROP, to match what the interpreter does. Bug 626345, r=Waldo. 2011-01-21 13:20:45 -06:00
Andreas Gal
bdd4aa4ade AnyName can't have a NULL parent (bug 617485, r=brendan). 2011-01-21 10:55:39 -08:00
Andrew Drake
54a4137e29 Bug 621464 - Fix xml_replace thinko introduced by 1d1fe1d1e626 (r=lw) 2011-01-21 09:31:56 -08:00
Chris Leary
5cc9a9562c Merge mozilla-central and tracemonkey. (a=blockers) 2011-01-20 20:47:21 -08:00
Daniel Holbert
684bbe61d7 Bug 612408: return NS_ERROR_FAILURE instead of NULL in failure case within mozJSComponentLoader::ImportInto. r=gal 2011-01-20 20:19:19 -08:00
David Mandelin
e591d18eb0 Bug 599854: fix repeated matching of empty groups, r=cdleary 2011-01-13 18:43:39 -08:00
Andreas Gal
16f46afa99 Actually stop shark when stopProfiling() is called (bug 626437, r=bz). 2011-01-20 18:24:08 -08:00
Andreas Gal
fe38925efd Distinguish between wrappers and proxies in WN::Unwrap (bug 623614, r=mrbkap). 2011-01-20 18:01:32 -08:00
Jason Orendorff
ec078d1750 Add an assertion per bug 626436 comments 7-9. rs=brendan.
--HG--
extra : rebase_source : 96bda82ab2b558ff794072c0b128a22ee46d7da1
2011-01-20 17:41:59 -06:00
Luke Wagner
452f71a352 Bug 626631 - nsAutoJSValHolder should root its jsval (r=gal)
--HG--
extra : rebase_source : 12bb96e9927e7c8740ccbd4b3838894a81165861
2011-01-20 15:30:03 -08:00
Andreas Gal
d015657412 Unwrap before applying waiver wrapper (bug 626290, r=mrbkap). 2011-01-20 14:41:30 -08:00
Jim Blandy
b123ea9aeb Bug 576847: Don't assume that definition nodes have atoms (functions don't); use the atom we find in the use node. Make ordinary placeholder nodes. r=brendan 2011-01-20 13:27:05 -08:00
Jim Blandy
88ef67763e Bug 576847: Propagate error returns out of CompExprTransplanter::transplant. r=luke 2011-01-20 13:27:05 -08:00
Jim Blandy
a7a25b6387 Bug 576847: Remove unused arguments in generator expression parsing functions. r=jorendorff
We always pass NULL as the |pn1| argument to js::Parser::parenExpr; remove
it. We pass NULL for the |genexp| argument in all but one case; give it a
default value. This allows almost all calls to pass no arguments.

We always pass a freshly allocated PN_UNARY node as |generatorExpr|'s first
argument, and never refer to the node again in the caller; move the
allocation into |generatorExpr| itself. This makes |generatorExpr| a
function that takes an expression |E| and returns the immediate application
of a generator function which consists of the nested loops and conditionals
given by the comprehension tail, with a |yield E| at the center.
2011-01-20 13:27:04 -08:00
David Anderson
3445b6ef78 Use the right JIT script when disabling trace ICs (bug 627150, r=billm). 2011-01-19 15:43:47 -08:00
David Anderson
783f963055 Get rid of value snapshotting in value iterators (bug 624421, r=luke,gal). 2011-01-14 17:15:21 -08:00
Gregor Wagner
be2a4effab Bug 624224 - cleanup compartment sweep code, r=brendan 2011-01-18 15:20:39 -08:00
Nicholas Nethercote
a9c8eef74c Bug 623428 - TM: avoid bloat caused by multiple mReserve arrays in VMAllocator (TM-specific part). r=gal. 2011-01-18 15:05:43 -08:00
Nicholas Nethercote
355b36ef67 Update nanojit-import-rev stamp. 2011-01-18 15:04:48 -08:00
Nicholas Nethercote
51800259db Bug 623428 - TM: avoid bloat caused by multiple mReserve arrays in VMAllocator (NJ-specific part). r=edwsmith.
--HG--
extra : convert_revision : f6016c7c7cd415a26dad9cf39d34141b8b482d43
2011-01-18 14:58:34 -08:00
Andrew Paprocki
224681155f Add JS_NewDateObject, JS_NewDateObjectMsec, JS_ObjectIsDate to the JSAPI. Bug 625870, r=jorendorff, a=shaver. 2011-01-18 16:11:03 -06:00
Jason Orendorff
ab5240165b Fix bug in JSParseNode::become when cloning an empty list node, leading to later memory corruption. Bug 626436, r=jimb.
--HG--
extra : rebase_source : 730e0679bcd3f3372da2425e5b1c664007fd1ffc
2011-01-18 15:58:11 -06:00
Luke Wagner
61c8ce9719 Bug 626599 - Compartment can be null in js_SetDebugMode (r=gal)
--HG--
extra : rebase_source : f901f1f51d6d2bc157705b1713736bb71e877439
2011-01-18 13:36:04 -08:00
David Mandelin
774253d75c Bug 606882: Import YARR changeset 72781, r=cdleary 2011-01-18 13:33:43 -08:00
Andreas Gal
f0d6ca57be Push dummy stack frame while wrapping (bug 626280, r=jst). 2011-01-18 12:51:56 -08:00
Jason Orendorff
b12d9b4edc Backed out changeset 27bf86dbdb52 due to redness. 2011-01-18 12:49:36 -06:00
Andrew Paprocki
187630946a Add JS_NewDateObject, JS_NewDateObjectMsec, JS_ObjectIsDate to the JSAPI. r=jorendorff, a=shaver. 2011-01-18 12:29:35 -06:00
Jason Orendorff
af4b2fd992 Add another method write barrier regression test. no_r=me.
--HG--
extra : rebase_source : 4348354a9d97e5249f4442a0bfc9b61b0220cd4a
2011-01-18 11:46:07 -06:00
Nicholas Nethercote
ed55695802 Bug 624878 - Remove dangerous uses of vanilla (throw-on-failure) |operator new|. r=lw. 2011-01-17 19:44:10 -08:00
Nicholas Nethercote
cc51b5ed72 Bug 581553 - Display bytes values associated with an instruction (TM-specific part). r=dmandelin. 2011-01-17 18:32:38 -08:00
Nicholas Nethercote
544940596f Update nanojit-import-rev stamp. 2011-01-17 18:31:03 -08:00
Nicholas Nethercote
3b27a0ff0e Make accNames[] public; needed for TM. No bug, r=me.
--HG--
extra : convert_revision : 4ca71b4e30e696851c0a7a934a0e73426cf8c2c7
2011-01-17 18:30:36 -08:00
Nicholas Nethercote
4507d99420 Update nanojit-import-rev stamp. 2011-01-17 18:23:05 -08:00
Nicholas Nethercote
0de1758f1b Bug 624439 - Assertion failure: isS32(target - next) (./nanojit/NativeX64.cpp:2012). r=edwsmith.
--HG--
extra : convert_revision : c3c9fa2b440f1fa564b2f6195919e75ec3d00acf
2011-01-16 21:38:25 -08:00
Cédric VINCENT
75dfbc4853 Bug 602390 - New file for SH4 auto-generated code (r+rreitmai) [Cédric VINCENT]
.
. attachment 493930 - SH4: use non-numeric type for Register & move auto-generated code-generator back to a separated file.
.
Bug 599251 introduced the non-numeric Register type.  This back-end doesn't use it yet.  It should.  See the i386/X64 back-ends for examples.

--HG--
extra : convert_revision : eb3a73807a9c8b2cafe10908710f9cb2467d090d
2011-01-05 17:24:39 -08:00
Rick Reitmaier
4ed28d7e05 Bug 602390 - nanojit: make Register a non-numeric type on SH4 (r=nnethercote)
.
. attachment 485873 - fix asserts so we can compile
.
Bug 599251 introduced the non-numeric Register type.  This back-end doesn't use it yet.  It should.  See the i386/X64 back-ends for examples.

--HG--
extra : convert_revision : b681599a542687e6a9779227f2f21a86b69ee2a9
2011-01-05 17:24:32 -08:00
Rick Reitmaier
b5ae867e4c Bug 581553 - Display bytes values associated with an instruction (r+nnethercote)
--HG--
extra : convert_revision : 8e80b4cfa30dc93557d6fb6d3493758749547e2e
2011-01-05 11:27:35 -08:00
Rick Reitmaier
6b35e95ed3 Bug 614126 - Decouple CodeAlloc block size from allocation size (r+edwsmith,nnethercote)
--HG--
extra : convert_revision : 2c9dc64162bd57c225c4b8cd184dfcf6d03a2e5f
2011-01-05 10:55:31 -08:00
Shawn Wilsher
3fb39ef252 Fix file permissions. 2011-01-19 20:18:06 -08:00
Shawn Wilsher
0f1517b5ad Merge mozilla-central to Places. 2011-01-19 15:01:12 -08:00
Vladimir Vukicevic
b4fe058f4f b=625503; convert NaN correctly with typed array array conversion; r=waldo, a=dvander 2011-01-14 10:46:22 -08:00
Jacob Bramley
d3366c8fbd Bug 625701: Sensible fixed width branching. (r=cdleary) 2011-01-14 09:00:56 -08:00
Chris Leary
1cad3ed712 Bug 625718: Correct SETPROP label offsets. (r=jbramley) 2011-01-14 07:49:59 -08:00
Chris Leary
a3d07a777f Bug 625701: Fixed-width IC cmp/branch is required for x86. (r=dvander) 2011-01-14 02:57:21 -08:00