Andreas Gal
|
ba7e66df92
|
Code generators to access object slots and native code callouts (builtins) for boxing doubles and ints. Ints have to be boxed through a native code helper on read and write (BoxInt32 and UnboxInt32), because we sometimes have to cast internally to double to store 32-bit values. We don't want a separate trace in this case, so we have to do this inline in a helper. Also a couple of modifications to shaver's code. Always make sure to check types (JSOP_NEG).
|
2008-07-05 11:35:55 -07:00 |
|
Andreas Gal
|
9b8f5f75a8
|
Added back support for the instructions required to compile trace.js.
|
2008-07-04 03:06:18 -07:00 |
|
Andreas Gal
|
8f4707fd29
|
Added dmod builtin and flag broken builtins for removal (shaver).
|
2008-07-02 22:05:30 -07:00 |
|
Andreas Gal
|
6eb6314e75
|
Support recording of ValueToECMAInt32, ValueToECMAUint32 and ValueToBoolean.
|
2008-07-02 21:48:42 -07:00 |
|
Andreas Gal
|
8113879262
|
This patch eliminates ValueToECMAInt32 and instead tries to emit specialized code depending on the true type. 32-bit integers are detected and treated like integers in fetch_int via ValueToECMA32. Similarly, int store_int NewIntInRootedValue is used if the value is really an underlying int. NewIntInRootedValue is a nop on the trace.
|
2008-07-02 03:33:18 -07:00 |
|
Brendan Eich
|
dff03bc859
|
Add license block-comment, expand tabs.
|
2008-06-22 23:54:19 -07:00 |
|
Andreas Gal
|
17d189ecb9
|
Eliminate boxing in trace code. To execute such traces all values on the stack must have the same type at execution time as at trace time. Code to detect and enforce these types will be added next.
|
2008-06-22 21:32:24 -07:00 |
|
Andreas Gal
|
4312eb9b9b
|
Write back stack/local variable state in the trace code and improved redundand boxing/unboxing elimination.
|
2008-06-22 19:58:24 -07:00 |
|
Andreas Gal
|
3197b76462
|
Mork work on attaching nanojit to our primitives. Traces have now their own box type (Box), which is an opaque 64-bit value. Its never supposed to appear in the trace since we will optimize away all boxing operations.
|
2008-06-21 22:28:41 -07:00 |
|
Andreas Gal
|
78da0668af
|
Start attaching our tracer to nanojit. This is incomplete and meant for review by David only.
|
2008-06-21 14:55:32 -07:00 |
|