Commit Graph

9007 Commits

Author SHA1 Message Date
Gregor Wagner
53e42ad125 Bug 566635 - TM: Change gcRootsHash and gcLocksHash to HashMap r=lw 2010-05-20 13:50:08 -07:00
Igor Bukanov
9d49b712de bug 566145 - reserving block and arguments shapes. r=jorendorff 2010-05-20 12:48:04 +02:00
Blake Kaplan
3ea4b3639e Fix bustage. 2010-05-19 19:19:31 -07:00
Blake Kaplan
9d09848caa Avoid calling XPCWrappedNative::GetWrappedNativeOfJSObject when we know we already have a wrapped native's JSObject. r=jst 2010-05-19 18:26:40 -07:00
Blake Kaplan
b2ebc063f7 Don't push call contexts when we don't have to. r=jst 2010-05-19 18:26:29 -07:00
Blake Kaplan
48aa419509 Avoid calling nsXPConnect::GetWrapperFor in the common case of wrapping a global object in its own scope. r=jst 2010-05-19 18:26:15 -07:00
Nicholas Nethercote
a27d4428f7 Bug 565251 - TM: simplify TraceRecorder::guardClass(). r=dvander. 2010-05-19 18:09:54 -07:00
Sean Stangl
e3e75e0bc6 Fix ReprMeter build and x64 bugs (bug 567015, r=dvander). 2010-05-19 16:35:30 -07:00
Brendan Eich
9de413892e Fix hard-case destructurinv vs. for(var ...=... in ...) bug (558633, r=mrbkap). 2010-05-19 16:25:56 -07:00
Luke Wagner
a033c82002 Bug 566831 - add missing 'return' to FrameRegsIter (r=dvander) 2010-05-19 11:21:26 -07:00
Andreas Gal
0042312b1f Don't leak native getters/setters into property descriptor objects (566914, r=brendan). 2010-05-19 14:43:17 -07:00
Julian Seward
a8447f425f Bug 557776 - js_InitTitle: initialize title->lock properly. r=jorendorff. 2010-05-19 15:36:56 -05:00
Andreas Gal
59fd9c917f Slowify dense arrays when used as 2nd argument of eval (566916, r=jwalden). 2010-05-19 12:19:44 -07:00
Jason Orendorff
721947de5b Bug 566549 - Crash [@ js_AllocSlot] or "Assertion failure: obj->map->ops->defineProperty == js_DefineProperty" with evalcx. r=brendan. 2010-05-19 13:23:53 -05:00
Andreas Gal
acd79cbc3d Move the scripted proxies test into js1_8_5/extensions (bug 546590). 2010-05-19 02:08:53 -07:00
Igor Bukanov
442b99542f bug 237006 - automatic detection of the native thread stack base. The patch is based on the initial patches for bug 516832 by gal and gregor. r=gregor 2010-05-19 10:29:05 +02:00
Andreas Gal
4023a5b4e1 Check for invalid eval scope argument (566000, r=brendan). 2010-05-19 01:24:57 -07:00
Brendan Eich
be1aa946e1 Fix vp off-by-2 bug (566815, r=gal). 2010-05-19 00:59:49 -07:00
Andreas Gal
4bcbe87597 Scripted proxy traps don't guarantee that numeric ids are JSVAL_INT (566806, r=brendan). 2010-05-19 00:21:04 -07:00
Andreas Gal
e9349c81ba Too much recursion crash with proxies (566790, r=brendan). 2010-05-19 00:13:02 -07:00
Andreas Gal
fc090da906 Properly mark undefined call and construct hooks of function proxies (bug 566781, r=shaver). 2010-05-18 20:20:50 -07:00
Andreas Gal
5b8624d46f Add proxies test directory to Makefile.in (follow-up fix for bug 546590). 2010-05-18 20:00:18 -07:00
Andreas Gal
efd9bd790e Implement ES Harmony Proxies (bug 546590, r=mrbkap). 2010-05-18 19:21:43 -07:00
David Anderson
92852e7346 Don't execute trees if the inline call depth could exceed interpreter limits (bug 566639, r=luke). 2010-05-18 15:29:10 -07:00
Jason Orendorff
cd83f6032b Bug 566665 - jstests.py -s should print command lines rather than lists of strings. r=dmandelin. 2010-05-18 17:04:27 -05:00
Dave Herman
8f88912ddf bug 566695, r=jorendorff: js_DumpPC for easy printing current code context in gdb
--HG--
extra : rebase_source : a7e7662fb2271f408ecf5c3f26c6e639243484fc
2010-05-18 16:34:25 -05:00
Igor Bukanov
492d01b062 bug 564414 - defining XP_MACOSX on MACOSX. r=ted 2010-05-18 23:48:01 +02:00
Jeff Walden
0bd2ff1b53 Null-check the parent before attempting to outerize. rs=brendan 2010-05-18 14:13:22 -07:00
Luke Wagner
8c66dc0bc9 Bug 566556 - Check for nslots == 0 in decompiler (r=waldo) 2010-05-18 10:11:49 -07:00
Igor Bukanov
c512831379 bug 566136 r=brendan 2010-05-18 16:51:11 +02:00
Andreas Gal
379f08c160 Bulk clear GC bitmaps when GC starts instead of after the GC ends (565229, r=gregor). 2010-05-18 03:01:33 -07:00
David Anderson
e46e9a1c25 Fix recursing with inlining (bug 565373, r=luke). 2010-05-17 21:30:59 -07:00
Robert Sayre
13c247559e Merge mozilla-central to tracemonkey 2010-05-17 13:55:37 -04:00
Igor Bukanov
d2691ed07b bug 563326 - followup to fix OOM reporting 2010-05-16 11:23:28 +02:00
Igor Bukanov
c19c9e55c8 Backed out changeset 5748e8ff4666 - I landed the wrong patch 2010-05-16 11:21:08 +02:00
Igor Bukanov
06f3d228f8 bug 563326 - followup to fix OOM reporting 2010-05-16 11:19:38 +02:00
Rasmus Jensen
6ebcc68ad5 Followup for bug 335051, E4X literals should be acceptable values for sharp variables. r=me 2010-05-15 10:28:54 -07:00
Rasmus Jensen
333acce4c4 E4X literals should be acceptable values for sharp variables. r=jwalden 2010-05-14 21:52:03 -07:00
Ben Turner
ad78046b90 Move 'source' property from IDBRequest to success/error events 2010-05-09 15:04:46 -07:00
Marco Bonardo
5a227798cf followup to Bug 553070. Fix test_xpcomutils.js permaorange. 2010-05-22 14:55:34 +02:00
Marco Bonardo
d3cd5e9f26 Forgot to enable the test for Bug 553070 2010-05-22 11:56:43 +02:00
Marco Bonardo
dbe1232637 Bug 553070 - Allow XPCOMUtils to do category registration for specific apps. r=sayrer 2010-05-22 10:41:00 +02:00
Ben Turner
6c2466d8ad Merge mozilla-central 2010-05-04 17:39:59 -07:00
Brad Lassey
f1bb0d955e bug 563751 - add configure option to js to enable building for thumb2 instruction set r=ted 2010-05-04 18:38:03 -04:00
Ben Turner
7dfcefae59 Add Get/Put on IDBObjectStoreRequest, move database files into subfolders based on origin 2010-05-04 13:25:16 -07:00
Jason Orendorff
afeaf2a57a Bug 563735 - Assertion failure: JS_IS_SCOPE_LOCKED(cx, scope) on crashtest machine. r=dvander. 2010-05-04 14:57:27 -05:00
Brad Lassey
a15e734cc6 bug 559263 - implement jemalloc for android r=vlad 2010-05-25 11:28:14 -04:00
Robert Sayre
91c79aee06 Merge tracemonkey to mozilla-central. 2010-05-24 16:27:35 -07:00
timeless@mozdev.org
645d4df35e Bug 565612 unreachable branch in js_InflateUTF8StringToBuffer. r=jorendorff
--HG--
extra : rebase_source : 64e41e13787b9a9c3cfb4faf987c6f6902293407
2010-05-23 15:40:59 -07:00
timeless@mozdev.org
5640cc8e6a Bug 565595 glob is used uninitialized in XPCJSContextStack::GetSafeJSContext when JS_NewContext fails. r=jorendorff
--HG--
extra : rebase_source : 352876a6e35a7c811a0218f6a238fd602447e235
2010-05-23 15:38:35 -07:00
timeless@mozdev.org
b5a03652d7 Bug 565593 crash [@ js_DestroyContext] if JS_NewContext fails in CancelExecution. r=jorendorff
--HG--
extra : rebase_source : a3d5e11c53a042e786560b90c2039f9183329a22
2010-05-23 15:37:31 -07:00
David Anderson
d1db88e05e Pretty-up some tcflag use in the parser and emitter (bug 563568, r=cdleary). 2010-05-03 20:53:55 -07:00
Dan Witte
e7cac15e98 Bug 551982 - Generate t.name and t.fields lazily. Part 4: hashify StructType fields. r=benjamn 2010-05-03 16:49:53 -07:00
Dan Witte
7124fa12fa Bug 551982 - Generate t.name and t.fields lazily. Part 3: lazy ffi_type. r=benjamn 2010-05-03 16:26:50 -07:00
Dan Witte
7e227a70cd Bug 551982 - Generate t.name and t.fields lazily. Part 2: lazy fields. r=benjamn 2010-05-03 16:26:34 -07:00
Dan Witte
30c5f4ac45 Bug 551982 - Generate t.name and t.fields lazily. Part 1: lazy name. r=benjamn 2010-05-03 16:21:33 -07:00
Dan Witte
70dd2657d6 Bug 560002 - Opaque struct and definition support in ctypes. Part 2: Remove opaque pointers. r=benjamn 2010-05-03 16:20:43 -07:00
Dan Witte
91a57c32a3 Bug 560002 - Opaque struct and definition support in ctypes. Part 1: Opaque structs. r=benjamn 2010-05-03 16:20:05 -07:00
Jason Orendorff
3a2ba42072 Bug 492915 - Trace incelem/decelem/eleminc/elemdec for objects other than arrays. r=brendan.
--HG--
extra : rebase_source : 33ab817997096bd4b00c8a36bb0444dcacc58a27
2010-05-03 16:48:06 -05:00
Nicholas Nethercote
67b2684e4d Bug 562837 - TM: avoid reboxing when copying a double from one array to another. r=brendan. 2010-05-03 15:51:57 -07:00
Jesse Ruderman
21d9a292ac Bug 563077 - fix handling of tests marked as 'random' so crashes are reported. r=dmandelin 2010-05-03 15:25:57 -07:00
Robert Sayre
1e491a700b Merge. 2010-05-03 12:32:11 -04:00
Robert Sayre
df21a4aa06 Update dense array cloning with new factoring of getDenseArrayCapacity 2010-05-03 11:19:45 -04:00
Robert Sayre
2a89b5be4f Merge mozilla-central to tracemonkey. 2010-05-03 11:03:37 -04:00
Nicholas Nethercote
1cd832e8d3 Bug 562872 - encapsulate Arguments-related dslots accesses. r=brendan. 2010-05-02 21:42:09 -07:00
Chris Leary
8ad3f63e27 Bug 563259: Fix shark/dtrace enabled combo. (r=me) 2010-05-02 17:14:44 -07:00
Luke Wagner
501ef0e6be Bug 563167 - propagate error out of Parse (r=cdleary) 2010-05-02 10:24:17 -07:00
Luke Wagner
d57afd3b99 Missed an init() in c6857d0b1e9f 2010-05-01 13:32:10 -07:00
Luke Wagner
e4ed25e94a Bug 563123 - use js::HashMap for JSCodeGenerator::constList (r=igor) 2010-05-01 12:53:14 -07:00
Luke Wagner
006a3618d0 Bug 563120 - test for failure earlier in js_TestXMLEquality (r=waldo) 2010-05-01 12:43:43 -07:00
Luke Wagner
309fb820c6 Bug 558270 - unroll Duff proper (r=waldo) 2010-04-30 18:48:55 -07:00
Ben Turner
420f44ee05 Adding events, threading, and more complete integration 2010-04-28 16:04:26 -07:00
Shawn Wilsher
44b885ab10 Merging mozilla-central 2010-04-28 15:36:43 -07:00
Robert Sayre
2420e05a4d Merge mozilla-central to tracemonkey 2010-04-28 11:11:48 -04:00
Igor Bukanov
fd7877710b bug 561539 - renaming AutoSaveRestoreWealRoots into AutoPreserveWeakRoots. r=brendan 2010-04-28 14:34:02 +02:00
Ginn Chen
1ffaf7e1a0 Bug 562001 nanojit failed to compile on Solaris x86_64 r=gal 2010-04-28 17:36:04 +08:00
Gary Kwong
92900e0049 Bug 369696 - fix bug number in tests, r=bclary. 2010-04-28 00:00:08 -07:00
Brendan Eich
58024b9de2 Resolve sharpSlots vs. var-in-with grudge match (561011, r=mrbkap). 2010-04-27 21:35:28 -07:00
Brendan Eich
da0855921b Use same source note offset bias/origin for both of SRC_IF_ELSE's offsets, but note second offset is optional (0 if absent; 562028, r=mrbkap). 2010-04-27 21:00:38 -07:00
Brendan Eich
8f2ea46da7 Back out my last commit due to orange. 2010-04-27 20:22:57 -07:00
Nicholas Nethercote
70488c788b Update nanojit-import-rev stamp. 2010-04-27 19:46:18 -07:00
Nicholas Nethercote
3b86611069 Bug 560712 - nanojit: give immediates names when printing LIR. r=edwsmith.
--HG--
extra : convert_revision : 53522168256873ff92a5cf1668d3ef8e65a87f38
2010-04-27 18:40:51 -07:00
Edwin Smith
842b6c912b Rename LIR opcodes in Nativei386.cpp (bug 559977 r=nnethercote+)
--HG--
extra : convert_revision : 62e0adc4d69e1d2246ee9336afd555ee3f6766a0
2010-04-27 20:05:58 -04:00
Brendan Eich
cac58870b8 Use same source note offset bias/origin for both of SRC_IF_ELSE's offsets (562028, r=mrbkap). 2010-04-27 19:41:20 -07:00
David Anderson
764d88c18d Fixed clamping bug in typed arrays (bug 561813, r=vlad). 2010-04-27 19:14:08 -07:00
Nicholas Nethercote
9281bf99d1 Update nanojit-import-rev stamp. 2010-04-27 16:33:36 -07:00
Nicholas Nethercote
42510923d1 Fix ARM bustage caused by bug 555255. r=me.
--HG--
extra : convert_revision : fd2a6c5b65a0f4fd4e09fa0366a626e97850f39b
2010-04-27 15:41:17 -07:00
Jason Orendorff
26c35bfc1f Disable the remaining jsreftests involving workers when running tests in the browser. See bug 559954, bug 562333. 2010-04-28 13:11:47 -05:00
Nicholas Nethercote
03c04769c0 Bug 518267 - nanojit: some instructions not printed with TMFLAGS=assembly. r=edwsmith.
--HG--
extra : convert_revision : 118664704b902286b9b21a35e3a998685980066a
2010-04-27 15:31:31 -07:00
Edwin Smith
3394d89548 Rematerialize add(r,imm) operations on x64 and i386 (bug 555255 r=nnethercote+)
This patch detects when LEA can be used to rematerialize an add operation
instead of spilling it.  Sub and lsh could be supported too, if it would
help (see notes in canRematLEA()).

--HG--
extra : convert_revision : e5db9525afbc8bd03444c66d8ded420f4696dce8
2010-04-27 10:00:27 -04:00
Edwin Smith
583621bba8 Rematerialize ALU+IMM operations on ARM (bug 555255 r=jbramley+)
The ARM backend already supported single-instruction folding of immediates into
add/sub/and/or/xor instructions.  This patch enables the same instructions to
be rematerialized without spilling them.

--HG--
extra : convert_revision : c5fca9078e37d7d79f66cf6023fcbf707d11d57b
2010-04-27 09:38:27 -04:00
Jason Orendorff
5f8646753d Follow-up to rev bed748189cd0 to fix a compiler warning. r=njn via IRC. 2010-04-27 17:43:20 -05:00
timeless
e191f26d48 Bug 560138 - mismatch use of new[] with delete in CData::Create. r=dwitte 2010-04-27 14:59:53 -07:00
Mike Moening
6531928c72 Bug 549532 - Allow custom memory allocator use in spidermonkey. Part 2. r=dvander 2010-04-27 14:17:11 -07:00
Jason Orendorff
4dd095ebe7 Fix build breakage in non-threadsafe JS shell. rs=brendan on IRC.
--HG--
extra : rebase_source : e4320a71553033d06f5e8ffa62a9798db9bef3e1
2010-04-27 14:40:28 -05:00
Jason Orendorff
79a69bd910 Bug 561444 - "Assertion failure: title->ownercx == cx || title->ownercx->thread == cx->thread, at ../jslock.cpp:1414" with multiple threads. r=igor.
--HG--
extra : rebase_source : 6749f4b86999cffc1abdcad79ef45f764ba165c2
2010-04-27 12:29:45 -05:00
timeless@mozdev.org
7a6e1325ab Bug 560557 - js_SetReservedSlot should assert that the specified slot index is in range. r=jorendorff.
--HG--
extra : rebase_source : b13f176270bd3419c253b8745c00a9251f36ab76
2010-04-23 21:32:51 -05:00
Jason Orendorff
d7438ec267 In a trace-test, do not try to print jitstats. no_r=me.
--HG--
extra : rebase_source : 6447c98085459bd7fc6b215279a9d5e1870d46ba
2010-04-26 16:28:41 -05:00
timeless@mozdev.org
ca917d7197 Bug 560815 - PRIVATE_TO_JSVAL(NULL) yields warning: NULL used in arithmetic with gcc 4.2.1. r=jorendorff.
--HG--
extra : rebase_source : bbbf5e801b7ae5bc0c7c30864e487a03ddcf72fc
2010-04-23 20:17:36 -05:00
Igor Bukanov
63f9c2e3d5 bug 553033 - replacing the background free list with a vector. r=jwalden 2010-04-27 15:46:24 +02:00