Closed
Bug 433204
Opened 17 years ago
Closed 16 years ago
basic support for using interpreter/tracer as independent library
Categories
(Tamarin Graveyard :: Tracing Virtual Machine, defect)
Tracking
(Not tracked)
VERIFIED
WONTFIX
People
(Reporter: shaver, Assigned: shaver)
Details
Attachments
(1 file)
I'm experimenting with generating Forth IL from a source other than the Verifier (namely, from Spidermonkey), and there were a few tweaks I needed to get the basics going (so far). I attach them here for your review!
(In the future, I would like to refactor the Interpreter interface such that it depended only on GC and Configuration and not need an AvmCore; it appears to be feasible, but will need some different checking for verbose flags and some reparameterization.)
Assignee | ||
Comment 1•17 years ago
|
||
4 parts to this patch:
- honour CXXFLAGS on Mac
- wrap the rule-inclusion parts of the generated Makefile so that it can be included semi-easily from other consumer code (this wants more work, but works surprisingly well for me!)
- make INTERP_DONE update the InterpState, so that the caller can see the right thing to pop/peek to get the result(s)
- interpCodeBuffer, which just lets you run a buffer of Forth with some optional args
Assignee | ||
Comment 2•17 years ago
|
||
(FWIW, with this patch and the child's-play hackery like that found in http://hg.mozilla.org/users/shaver_mozilla.com/js-trace/ we can get the forth interpreter up and tracing in another program, such as a Spidermonkey shell. :) )
Comment 3•17 years ago
|
||
to land, it'd be good to factor interpMethodEnv and use interpCodeBuffer(), just to avoid cut & paste. The LOCALS_TO_STATE change looks right, i've also got it the patch for bug 433629, whoever pushes first, wins
Comment 4•17 years ago
|
||
LMK if you want help to unbitrot this, or just let it slide. Ive got the LOCALS_TO_STATE on deck in a different patch.
Assignee | ||
Comment 5•17 years ago
|
||
Yeah, no plans for this at present. I'll close it out as WONTFIX, can reopen if we later decide it's worth the investment.
Comment 6•17 years ago
|
||
fyi the INTERP_DONE fix has been pushed with other changes.
Updated•17 years ago
|
Attachment #320398 -
Flags: review?(edwsmith)
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
Updated•16 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•