Nicholas Nethercote
a03f3e7b1a
Bug 492490 - nanojit: move Assembler::findVictim() from RegAlloc.cpp to Assembler.cpp
2009-05-18 02:20:59 -04:00
Nicholas Nethercote
90746fda0d
Bug 490947 - nanojit: remove reservation table. r=gal,edwsmith
2009-05-18 02:15:24 -04:00
Nicholas Nethercote
1a33faa263
Bug 492301 - nanojit: remove some dead code. r=edwsmith
2009-05-18 01:45:46 -04:00
Nicholas Nethercote
9581ac0331
Bug 492292 - nanojit: remove duplicated LIns predicates. r=edwsmith
2009-05-18 01:38:00 -04:00
Jacob Bramley
7dd0b8fd55
Bug 486669 - TraceMonkey: The ARM-specific _nSlot pointer should be reset along with _nIns. r=vlad,edwsmith
2009-05-09 15:35:56 -04:00
Nicholas Nethercote
9df38f0476
Bug 488775 - TM: widen LIR instructions. r=graydon,edwsmith
2009-05-09 14:38:34 -04:00
Jeff Walden
c9680230c4
Bug 473117 - Rejigger how guards use side exits, and fix an erroneous comment. r=graydon
2009-04-18 16:47:23 -07:00
Jacob Bramley
3c4a821492
bug 486675 - always using setError to set _err
2009-04-06 13:32:46 +02:00
Vladimir Vukicevic
eb82870ba4
b=484561; [arm] fix EABI calling convention; clean up asm_call; r=graydon
2009-03-27 14:31:53 -07:00
Vladimir Vukicevic
d317d0075d
b=480796; detect whether ARM chip has VFP and/or v6t2 instructions; r=gal
2009-03-20 15:53:33 -07:00
Vladimir Vukicevic
b992e5da9e
[arm] b=481761; ARM ALU step 1; r=graydon
2009-03-20 15:53:14 -07:00
Nicholas Nethercote
ea15e54ba4
Bug 475876: change --with-valgrind to --enable-valgrind and add hooks to tell valgrind about the JIT's self-modifying code. r=gal (JIT parts), r=luser (build config parts).
2009-03-05 13:24:03 -08:00
Leon Sha<leon.sha@sun.com>
604e62a813
Bug 476042 - Integrate sparc nanojit intro tracemonkey. Put the flush instruction cache code to the correct place. r=gal
2009-02-24 12:46:27 +08:00
Nicholas Nethercote
bf6590048b
Bug 478340 - TM: kill many of the warnings when building 'js'. r=mrbkap
2009-02-19 11:17:31 -08:00
Leon Sha<leon.sha@sun.com>
128a82a274
Bug 476042 - Integrate sparc nanojit intro tracemonkey. r=gal, r=jim.
2009-02-16 10:10:03 +08:00
David Mandelin
39b9e72a0c
Bug 475115: LIR_jtbl: jump tables to implement jsop_tableswitch, r=gal,r=edwsmith
2009-02-11 17:40:27 -08:00
Jason Orendorff
0fcee1ed9f
Bug 477713 - Allow LIR_ret at end of trace. r=edwsmith.
2009-02-10 13:23:27 -06:00
David Mandelin
e38c9322a4
Bug 476560: nanojit assembler needs to clear its state before each compilation, r=gal
2009-02-06 11:59:54 -08:00
Andreas Gal
424b5e8997
Detect OOM condition and flush code cache when destroying the recorder and don't enter endAssembly when OOM (475821, r=danderson).
2009-01-28 15:12:31 -08:00
Robert Sayre
cd3999104d
Merge m-c to tm.
2009-01-26 13:54:59 -08:00
David Anderson
0e4418db16
Bug 473880 - TM: Add a way to keep stack values alive without emitting guard code. r=gal.
2009-01-23 15:21:55 -06:00
Andreas Gal
1d277bc633
Backout all patches since last mozilla-central merge (Thu Jan 22 19:14:02 2009 -500 by sayrer).
2009-01-25 02:58:22 -08:00
David Anderson
ee93602364
Bug 473880 - TM: Add a way to keep stack values alive without emitting guard code. r=gal.
2009-01-23 15:21:55 -06:00
Daniel Holbert
2a7d88e05a
Bug 473236 - Remove executable bit from files that don't need it. (Only changes file mode -- no code changes.) r=bsmedberg
2009-01-21 22:55:08 -08:00
Ginn Chen
ea9689bd2a
Bug 474757 Several build failures on Solaris build for js/src r=danderson
2009-01-23 16:09:27 +08:00
Graydon Hoare
bb7e9793cf
Bug 468484 - back out most of changeset 2963765d5585 and ifdef-guard members of avmplus::Config, fix arm build.
...
* * *
Bug 468484 - ifdef-guard members of avmplus::Config structure that broke ARM build.
2008-12-11 13:50:55 -08:00
Graydon Hoare
3cbd1cd998
Bug 450000 - Back out nanojit jump-patching machinery, r=danderson.
2008-12-10 17:31:17 -08:00
Graydon Hoare
ba3dc13800
Bug 468484 - Minor adjustments to match changes in tamarin, r=gal.
2008-12-10 17:25:46 -08:00
Graydon Hoare
37cfe58e72
Bug 468484 - Rename avmplus::AvmConfiguration, adjust sites of use, r=gal.
2008-12-10 17:19:40 -08:00
Rick Reitmaier
a70c5b7d48
Bug 468484 - LirBuffer has been modified to provide advance warning of out of memory (OOM) conditions, r=danderson.
...
LirBuffer has been modified to provide advance warning of
out of memory (OOM) conditions.
A new page is allocated LIR_BUF_THRESHOLD instructions
prior to reaching the end of page. If the page allocation fails,
call to outOmem() will return true. The buffer can still be
safely written to during during this period but it is assumed
the higher level code will catch this condition and handle
it appropriately as writing LIR_BUF_THRESHOLD instructions
past this point will cause a crash.
This opportunity was also taken to re-factor the code for
LirBufWriter making it more platform agnostic.
- All non-LInsp data in the instruction stream is now managed
through structures that overlay the memory region.
- prepFor() was added to replace the multiple
ensureReferenceable() calls for each instruction.
- insCall() was also modified somewhat in that the
arguments are now stored growing downwards from
the position of the pseudo instruction LirCallIns.
CodegenLIR now has LirBuffer checks at the granularity
of each emitXXX() call that is exposed publicly. This seemed
like a reasonable approach since a client could potentially
call at this level indefinitely. If we want to reduce the frequency
of these checks then we'd have to push the check up into the
verifier.
Assembler OOM handling has also changed. The variable
_startingIns was added and contains the location at which
the assembler began writing code for the current
begin/assem/end sequence. If an OOM condition occurs
the assembler will reset the current instruction pointer
to _startingIns, effectively overwriting the code that has
been generated. This allows the assembler to produce
code indefinitely (and without error) until the upper layers
have noticed the error and respond accordingly.
The constant LARGEST_UNDERRUN_PROT was added
and needs to be set to a platform specific value that is
equal to or greater than the number of NIns written for
the largest possible instruction. i.e. you cannot write
more than this number of NIns to the buffer for each
call to underrunProtect().
2008-11-14 12:46:35 -08:00
Edwin Smith
d1925631b4
Bug 468484 - trivial cleanups to simplify armjit merge (r=me), r=danderson.
2008-11-13 12:52:26 -05:00
Edwin Smith
774d38113c
Bug 468484 - Fix cascading register spilling bug 462522 (r=rreitmai+), r=danderson.
2008-10-31 15:56:02 -04:00
Edwin Smith
903336fe43
Bug 468484 - Fixed bug causing too much spilling, other arm tweaks, r=danderson.
2008-10-28 15:16:05 -04:00
Steven Johnson
4dfea32fd4
Bug 468484 - redid nMarkExecute() to fix the bug. Now it always does exactly one page, r=gal.
2008-10-21 18:34:10 -07:00
Edwin Smith
4ab0561335
Bug 468484 - make asm_output[123] varadic, and add some LIR instruction comments, r=gal.
2008-10-21 14:53:14 -04:00
Steven Johnson
fbc6fd0ad9
Bug 468484 - internal tamarin-redux merge (mostly formatting), r=gal.
2008-10-20 15:52:11 -07:00
Steven Johnson
13f8b6629c
Bug 468484 - Macro-ize calls to new/delete to account for MMgc interactions, r=gal.
2008-10-20 15:51:13 -07:00
David Anderson
14bfd2d9ab
Fixed nanojit crashing when the reservation table filled (bug 460511, r=rickr).
2008-12-04 11:41:43 -08:00
Jesse Ruderman
e23679569a
Remove '\n' from NanoAssertMsgf calls (made redundant by the patch in bug 452674)
2008-11-12 18:02:34 -08:00
Andreas Gal
43daeaca87
Don't spill type definitions in avmplus.h into the global namespace (462288, r=danderson).
2008-11-07 15:52:51 -08:00
David Anderson
a6c715fb81
Fixed memory leak in nanojit's LabelStateMap (no bug, r=gal).
2008-11-04 19:22:13 -08:00
Graydon Hoare
9198f045ad
Bug 462228 - Add interface to disconnect and reconnect loops in nanojit, r=gal.
2008-11-04 14:20:19 -08:00
Graydon Hoare
5cfd909934
Bug 462228 - Merge code-patching functions in nanojit, r=rreitmai.
2008-11-04 14:18:17 -08:00
David Anderson
65f7adbd31
Fixed OOM handling when starting a recorder or assembler (bug 451322, r=gal+rreitmai).
2008-11-03 16:10:20 -08:00
David Mandelin
f8d1b7798b
Preserve param1 over loop iters if it is used, desk r=danderson
2008-10-31 16:48:14 -07:00
Andreas Gal
4eafb60801
Add 16-bit non-volatile loads to nanojit (454301, r=danderson).
2008-10-30 14:17:42 -07:00
Andreas Gal
e2a6acb46a
Use LIR_loop for loop edge to avoid going into a side exit handler at every loop edge (461231, r=danderson).
2008-10-22 16:00:08 -07:00
Vladimir Vukicevic
d2f0736eb6
[arm] misc codegen fix
2008-10-22 11:02:24 -07:00
Andreas Gal
b14d526b66
Merge.
2008-10-21 17:50:52 -07:00
Andreas Gal
ec7efc925c
Remove code to unlink trees to reduce the size of GuardRecord. Allow GuardRecords to share one common SideExit structure. The VM places both explicitly into the LIR (460538, r=danderson).
2008-10-21 17:50:32 -07:00