Граф коммитов

17669 Коммитов

Автор SHA1 Сообщение Дата
Edwin Smith 36860b912f Only perform the disp32->disp8 addressing mode optimization on valid instructions (bug 543440 r=dvander+)
RIP-relative addressing uses mod 00 "disp32" encoding, but mod_disp32() assumes
all instructions passed in can be optimized to disp8 encoding if the actual
displacement is 8-bit.  This is invalid for mode 00 modes, including RIP addressing.

mod_disp32() can still do the right thing in the other arm of its branch; this
patch removes the assert and tightens the check for the disp8 case.

--HG--
extra : convert_revision : b534b9289ca8a111f16fbf0b0711b5277be440f4
2010-04-14 16:22:14 -04:00
Edwin Smith 4682fd0968 Lower ARM MIPS NJ_MAX_STACK_ENTRY to 1024 as a workaround for asm_spill() limitations (bug 556175)
Fixme's added, explaining why.

--HG--
extra : convert_revision : 7d102db403b76739c69fbf1e5b1e35bdbeb4b3c6
2010-04-14 09:15:56 -04:00
Edwin Smith 99e805708d Use AvmAssertFail instead of NanoAssertFail to implement NanoAssert (Bug 473188 r=gal+)
--HG--
extra : convert_revision : 7c682d3836f7587225a2f8dce73039d10a972318
2010-04-13 15:41:15 -04:00
Edwin Smith 074308e4d7 Add support for LIR_stb on PPC (bug 558597 r=leon.sha pending)
Pushing this in advance of review; It appears to run fine in the tamarin-redux
acceptance suite, and i tested it also by stopping in asm_store32() with dbx,
and disassembling the generated STB instruction.  Looked fine to the naked eye.

--HG--
extra : convert_revision : 1e26f7116dc4435461b56900454b02fa821a9e54
2010-04-13 14:39:49 -04:00
Edwin Smith 01acfa6f66 Allow i386 JCC() instruction to emit patchable jumps (bug 557705 r=me, nnethercote=pending)
TR needs to support patching, the assert is too restrictive.
Support target == 0 with an explicit check instead of letting
it just work by accident.

--HG--
extra : convert_revision : 5f12e1da6b7f3b76116ccf2ffd878969e103f557
2010-04-13 11:42:42 -04:00
Edwin Smith 78e0d2a1f2 Raise ARM and MIPS NJ_MAX_STACK_ENTRY to 4096 (bug 556175 r=Jacob.Bramley+)
--HG--
extra : convert_revision : 7a068ed450bb6ba47d8a5ab2586487a1b37ba8db
2010-04-13 11:14:49 -04:00
Edwin Smith 9dba85da38 Implement LIR_stb on PPC32/64 (bug 558597 r=rreitmai+)
Patch also fixes an invalid assert that required load/store
displacements to be multiples of 4 on PPC.

--HG--
extra : convert_revision : e2a7f626b35179db953469ea94cdb39d16b10f7c
2010-04-12 21:27:19 -04:00
Rick Reitmaier 4015f4a3d8 Bug 557706 - Allow LogControl printf method to be overridden (r=nnethercote,edwsmith)
Issues with prior patch not compiling with tamarin due to missing vtable,
so make sure printf isn't available unless verbose is enabled.

--HG--
extra : convert_revision : 147e02ce8790c9e09f4c91b29b1bcc5d16862ee1
2010-04-12 11:51:00 -07:00
Nicholas Nethercote a034e2854e Bug 557991 - nanojit: remove dead code from CodeAlloc. r=edwsmith.
--HG--
extra : convert_revision : 335ca0fff2a7ac451d0fa1c11594f6dbacada648
2010-04-08 18:33:21 -07:00
Edwin Smith aa8c8d3faf Suppress unused arg warnings for bug 557843 (r=me.)
Took the opportunity to add a few asserts to ensure the implit RHS
register for x86 shift instructions is always ECX.

--HG--
extra : convert_revision : 6baccc0354a87ece92ccff6ff138986bf4d19a2c
2010-04-08 12:58:49 -04:00
Rick Reitmaier 232b0a8236 Bug 557706 - Allow LogControl printf method to be overridden (r=nnethercote)
if LogControl.printf is made a virtual method then consumers of nanojit can
more easily control how the output is managed.

--HG--
extra : convert_revision : 7fa9ad2e2d57661e4290df0b3902fd809f19d768
2010-04-07 09:54:30 -07:00
Nicholas Nethercote 7efff77732 Bug 559250 - encapsulate JSSLOT_{PRIMITIVE,DATE,REGEXP}_* within JSObject (take 2). r=brendan. 2010-04-14 18:57:30 -07:00
Nicholas Nethercote 54381c3e54 Backed out changeset 681b0067e61b due to massive breakage 2010-04-14 17:09:17 -07:00
Nicholas Nethercote e5b1652906 Bug 559250 - encapsulate JSSLOT_{PRIMITIVE,DATE,REGEXP}_* within JSObject. r=brendan. 2010-04-14 16:18:03 -07:00
Jason Orendorff 0089afc587 Bug 559438 - Decompiler bug with JSOP_CONCATN. r=shaver. 2010-04-14 17:26:44 -05:00
Jason Orendorff 897e13f450 Missing test file for 47949ff2d058. 2010-04-14 15:52:24 -05:00
Jason Orendorff 5cd6cfd465 Bug 559006 - Wrong behavior with JSClass::convert hook and JIT. r=mrbkap. 2010-04-14 15:07:01 -05:00
Dan Witte 2d0cad7e4d Bug 556329 - Allow ctypes to load exported data symbols. r=jorendorff 2010-04-14 10:36:48 -07:00
Walter Meinl d0f398d2dd Bug 538002 - Get libffi 3.0.9 working on OS/2. Part 3: Mozilla bits. r=dwitte 2010-04-14 10:36:48 -07:00
Dan Witte a333112077 Bug 538002 - Get libffi 3.0.9 working on OS/2. Part 2: update libffi.patch. 2010-04-14 10:36:48 -07:00
Walter Meinl b1747b7934 Bug 538002 - Get libffi 3.0.9 working on OS/2. Part 1: libffi bits. r=dwitte 2010-04-14 10:36:48 -07:00
Dan Witte 2bd62884bc Bug 556902 - Fix ctypes warnings. Part 2: libffi. r=benjamn 2010-04-14 10:36:48 -07:00
Dan Witte 4d2180ac9a Fix allocator mismatch. No bug, r=jorendorff 2010-04-14 10:36:47 -07:00
Robert Sayre 9eb74e4845 Merge mozilla-central to tracemonkey. 2010-04-14 08:17:38 -04:00
Jason Orendorff 9b0216657e Merge backout. 2010-04-14 07:00:55 -05:00
Jason Orendorff e727aab13c Backed out changeset ff77002e8a30 (bug 558720). 2010-04-14 07:00:36 -05:00
Gregor Wagner 1b351d8da0 Bug 541140 - TM: don't return GCChunks immediately 2010-04-13 20:14:10 -07:00
Nicholas Nethercote 46b939366c Bug 558714 - js_ScriptClass doesn't need a reserved slot. r=brendan. 2010-04-13 19:38:49 -07:00
Brendan Eich 934c30742a Fix non-escaping closure optimization to cope with 'with' and eval (558720, r=jorendorff). 2010-04-13 19:05:26 -07:00
Robert Sayre 7e6126708a Merge 2010-04-13 18:16:05 -04:00
Robert Sayre 10865b24dd Backed out changeset c9faf5a2bc75 2010-04-13 18:15:20 -04:00
Gregor Wagner d30fddbdb8 Bug 558833 - Fix GCTIMER for SweepDoubles. r=jorendorff.
--HG--
extra : rebase_source : 7492dd5a7bbed917ad4177685631ea1163193579
2010-04-13 08:58:40 -05:00
Luke Wagner 99d9e743b4 Check for JS_THIS_OBJECT failure in obj_isPrototypeOf (r=Waldo)
--HG--
extra : rebase_source : e22f9eb8bdf47b2f3cf2c5fc3d6ed46e01c191a2
2010-04-12 20:05:03 -07:00
Mike Moenig ea63af8267 [JAEGER] Allow custom memory allocator use in spidermonkey (bug 549532, r=dvander). 2010-04-12 18:51:25 -07:00
Luke Wagner 98a8aede2d Bug 558950 - Object.watch should always return undefined (r=Waldo) 2010-04-12 17:47:35 -07:00
Igor Bukanov 590831e6c2 bug 553812 - separate GC arena info and mark bits from the arena. r=gal,anygregor 2010-04-13 00:59:19 +04:00
Igor Bukanov ab417f436c backout merge 2010-04-12 23:43:43 +04:00
Igor Bukanov c8168729f8 Backed out changeset 47532d9153cb - xpcshell failures 2010-04-12 23:42:45 +04:00
Jeff Walden 4d852b3582 Bug 558249 - Followup fixes to bug 550402 to record setting getter-only properties better. r=jorendorff
--HG--
extra : rebase_source : 0cfef9aca97c243b1d45e5b6e4d68181cd3cea5c
2010-04-12 11:11:33 -07:00
Igor Bukanov f28d6cecc9 bug 553812 - separate GC arena info and mark bits from the arena. r=gal,anygregor 2010-04-12 21:15:30 +04:00
Jason Orendorff 3cb538bf91 Bug 557652 - Eliminate redundant guard that incProp/getProp operand is not the global object. r=brendan.
--HG--
extra : rebase_source : 8da6192aedb78f6096d83a161698b27e43d30c30
2010-04-12 08:27:16 -05:00
Robert Sayre 98a3aefdbd Fix merge bustage. 2010-04-12 10:08:55 -04:00
Robert Sayre 114d145903 Merge mozilla-central to tracemonkey. 2010-04-12 09:45:24 -04:00
Nicholas Nethercote ff94c40f06 Bug 556165 - dead code in array_shift(). r=jwalden. 2010-04-11 22:38:55 -07:00
Andreas Gal 42ef3b9744 Remove lingering defaultValue calls with hint JSTYPE_OBJECT or JSTYPE_FUNCTION (554550, r=brendan). 2010-04-11 20:55:22 -07:00
Andreas Gal 75c8504688 Fix an incorrect comment (r=me). 2010-04-11 20:03:04 -07:00
Nicholas Nethercote fd1e728799 merge 2010-04-11 16:45:50 -07:00
Nicholas Nethercote 7d6b2dbd58 Bug 557713 - encapsulate JSSLOT_ARGS_* within JSObject. r=brendan. 2010-04-11 16:45:20 -07:00
Nicholas Nethercote 7255e52f92 Bug 558530 - JM: Crash [@ js_CallGCMarker] with gc. rs=me. 2010-04-11 16:28:04 -07:00
Brendan Eich 30b7a47178 Keep jsprvtd.h usable from C (558437 followup, r=REDRUM). 2010-04-11 10:40:36 -07:00