Andreas Gal
|
6ba62a6fa7
|
Cleanup stack adjustment during tree calling.
|
2008-08-14 17:52:11 -07:00 |
|
Andreas Gal
|
801923081c
|
Make sure sp points to the native stack base of the inner tree when calling a nested tree.
|
2008-08-14 16:22:01 -07:00 |
|
Andreas Gal
|
13a4a98604
|
Merge.
|
2008-08-14 16:04:14 -07:00 |
|
Andreas Gal
|
1edbe7e6bf
|
Don't over-compensate sp_adj (exclude the callee).
|
2008-08-14 16:02:33 -07:00 |
|
David Anderson
|
f2223e2048
|
Merge.
|
2008-08-14 15:29:25 -07:00 |
|
David Anderson
|
2c45d81524
|
Fixed recorder not aborting when leaving js_Execute (bug 450532).
|
2008-08-14 15:29:04 -07:00 |
|
Blake Kaplan
|
8440f739f0
|
Avoid the malloc altogether if we're going to use a unit string.
|
2008-08-14 15:19:57 -07:00 |
|
Vladimir Vukicevic
|
61a89af8e6
|
b=450176; trace parseInt and parseFloat; r=gal
|
2008-08-14 15:13:39 -07:00 |
|
Blake Kaplan
|
e0872c3629
|
bug 450641 - Add missing JS_free call.
|
2008-08-14 15:03:08 -07:00 |
|
David Anderson
|
9f7d261303
|
Fixed the known native arg handler from accidentally using 'continue' to break out of a loop one level higher. This was causing crashes when the arg didn't match the expected types (bug 450530).
|
2008-08-14 11:48:43 -07:00 |
|
Andreas Gal
|
d0056d1820
|
Assert on the recording table only if we have enabled the tracer (446551).
|
2008-08-14 09:04:22 -07:00 |
|
Andreas Gal
|
bfcf6a784d
|
Write back outer tree frames, but exclude the current frame (which the next tree will do). This still crashes the trace-tests.js test case with nesting enabled and for the life of me I can't figure out why (try with TRACEMONKEY=nesting).
|
2008-08-14 01:44:32 -07:00 |
|
Andreas Gal
|
fa52d00c5a
|
Backed out changeset 089406b2b0aa
|
2008-08-14 00:45:39 -07:00 |
|
Andreas Gal
|
55bc4df432
|
Add an explicit start frame parameter to the FORALL macros, which allows FlushNativeStackFrame to be used for other frames than just the topmost N ones.
|
2008-08-13 23:20:44 -07:00 |
|
Andreas Gal
|
a5e83b133c
|
Fix outrageously incorrect comment.
|
2008-08-13 22:54:23 -07:00 |
|
Andreas Gal
|
d6e6e333e2
|
Added bitsinbyte-ish testcase to trace-test.js. This currently still crashes the VM in nested mode.
|
2008-08-13 21:44:01 -07:00 |
|
Andreas Gal
|
2f533e6051
|
Merge. I miss CVS.
|
2008-08-13 21:37:33 -07:00 |
|
Andreas Gal
|
0530506440
|
Restore state of the outer frames in case of a nested exit. Should be feature complete but needs more debugging.
|
2008-08-13 21:34:41 -07:00 |
|
Brendan Eich
|
bb2a177553
|
LOL ANDR3AS SUX0RZ!!!
|
2008-08-13 19:24:40 -07:00 |
|
Brendan Eich
|
a0bf39bbaa
|
MERGE LOL HG SUX0rz!
|
2008-08-13 19:23:56 -07:00 |
|
Andreas Gal
|
8d4c97dbef
|
FlushNativeStackFrame currently only handles the innermost nested trees writeback, so at least make it use the proper adjusted stack base for that.
|
2008-08-13 19:23:28 -07:00 |
|
Brendan Eich
|
8efccf4d7d
|
Abort recording if unwinding from js_Interpret to js_Invoke and still recording (this can happen via fun.call/.apply). Also assert in threaded interpreter BEGIN_CASE and DO_OP (from END_CASE) that we either have no recorder or are using the recordingJumpTable.
|
2008-08-13 19:22:07 -07:00 |
|
Andreas Gal
|
01efe3882f
|
Update inlineCallCount with the total call stack height, which is the sum of rp_adj and any adjustments nested trees added. Also make sure to read all stack adjustment information from the tree we exit on, not the tree we entered (might be different in case of nesting.)
|
2008-08-13 19:09:05 -07:00 |
|
Andreas Gal
|
30b82dbcbd
|
Print relative stack instead of absolute stack address upon side exit (debug mode).
|
2008-08-13 18:28:43 -07:00 |
|
Andreas Gal
|
c0e640829a
|
Added test case for nested exits.
|
2008-08-13 18:13:22 -07:00 |
|
Andreas Gal
|
9350282579
|
Implement nested side exits.
|
2008-08-13 18:10:19 -07:00 |
|
Andreas Gal
|
222e746fe7
|
Merge. If I had a cent for every merge. Sigh.
|
2008-08-13 17:48:04 -07:00 |
|
Andreas Gal
|
f1d87d6234
|
Reshuffle code lines in the side-exit return path (do asserts closer to the GlobalFrame writeback.)
|
2008-08-13 17:47:18 -07:00 |
|
David Anderson
|
4d25c18771
|
Merge.
|
2008-08-13 17:46:58 -07:00 |
|
David Anderson
|
87d9c2089d
|
Merge.
|
2008-08-13 17:45:50 -07:00 |
|
Brendan Eich
|
fc782418ee
|
Set rval_ins with initializing=true because nothing will get the callee, so the tracker won't have tracked it yet if it's in virgin stack.
|
2008-08-13 17:45:49 -07:00 |
|
David Anderson
|
3652f7c126
|
Fix from brendan for propertyIsEnumerable having an inconsistent return type.
|
2008-08-13 17:44:26 -07:00 |
|
Brendan Eich
|
880030b373
|
Forgot to string-tag before going from atom to jsid in two builtins.
|
2008-08-13 17:20:16 -07:00 |
|
Andreas Gal
|
eac5c3ed47
|
Merge. Lame.
|
2008-08-13 17:13:53 -07:00 |
|
Andreas Gal
|
201341cfc5
|
Add nestedExit to InterpState and comment its fields.
|
2008-08-13 17:12:55 -07:00 |
|
David Anderson
|
a9922db939
|
Merge.
|
2008-08-13 17:12:08 -07:00 |
|
David Anderson
|
4c7aaa248b
|
Merge.
|
2008-08-13 17:11:22 -07:00 |
|
Brendan Eich
|
ca1e2a283a
|
Fix prototype hit case in prop to advance obj and obj_ins up the proto chain.
|
2008-08-13 17:10:18 -07:00 |
|
David Anderson
|
fe66e966ca
|
Fixed from brendan for counting disparity between nativeStackSlots and FORALL_SLOTS_IN_PENDING_FRAMES.
Added debug code to catch future disparities.
|
2008-08-13 17:09:16 -07:00 |
|
Andreas Gal
|
ee55743358
|
Don't print LeaveFrame debug info when falling out of the global frame.
|
2008-08-13 16:57:14 -07:00 |
|
Andreas Gal
|
9c95a20382
|
Merge.
|
2008-08-13 16:43:46 -07:00 |
|
Andreas Gal
|
e702dc5ac4
|
When re-importing register values after a tree call, make sure to use the inner tree's nativeStackBase, since we also use the inner tree's sp.
|
2008-08-13 16:29:59 -07:00 |
|
Brendan Eich
|
7fc14c40cf
|
Fix bogus varval assert.
|
2008-08-13 16:14:22 -07:00 |
|
Andreas Gal
|
27c128f706
|
Merge.
|
2008-08-13 15:50:40 -07:00 |
|
Andreas Gal
|
e68f9ee859
|
Read back registers used by inner tree relative to inner_sp (the adjusted sp value). Print frames we enter into and return to in Enter/LeaveFrame.
|
2008-08-13 15:50:11 -07:00 |
|
Brendan Eich
|
3d21588b2c
|
Major and winning overhaul to for-in codegen (mad props to Andreas for advice).
|
2008-08-13 14:02:35 -07:00 |
|
Andreas Gal
|
892137794b
|
Don't call inner trees if they use global slots since we don't support those in inner trees yet.
|
2008-08-13 14:00:37 -07:00 |
|
Andreas Gal
|
1d809d7adf
|
Merge.
|
2008-08-13 13:52:21 -07:00 |
|
Andreas Gal
|
fa09943222
|
Flexible call stack allocation with proper guarding for call stack overflows.
|
2008-08-13 13:51:59 -07:00 |
|
David Anderson
|
ff9bb9ea9d
|
Fixed ifop predicting NaNs as true when they should be false.
|
2008-08-13 12:25:50 -07:00 |
|