Closed
Bug 478115
Opened 17 years ago
Closed 17 years ago
Re-engineering the verifier to break apart type modeling, optimization, and code generation (phase 2)
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jodyer, Assigned: jodyer)
References
Details
Attachments
(3 files)
|
96.01 KB,
patch
|
edwsmith
:
review+
|
Details | Diff | Splinter Review |
|
14.83 KB,
patch
|
edwsmith
:
review+
|
Details | Diff | Splinter Review |
|
406 bytes,
patch
|
jodyer
:
review+
|
Details | Diff | Splinter Review |
The front end of the VM is now organized as a pipeline through the CodeWriter interface. But there is more work to do in untangling direct calls from the verifier to the various code generators and channeling them through that pipeline.
Just to mention a few tasks remaining:
- implicit null checks and coercions are emitted by the jit, but not the word code emitter (wce). either add them to the pipeline and stub them in the wce, or move them to the jit
- there are early bound forms in the jit that don't exist in the wce. maybe stub out these in the wce so they can be added to the pipeline.
- the early binding code complicates the verifier. move early binding out of the verifier and into the pipeline, either where it is used in the jit, or in a filter before the jit
- there are places where the jit modifies the frame state making that state dependent on whether or not the jit is run. either move that state out of the shared frame state, or manage it from a code path that executes independent of the jit.
- ...
Jd
Attachment #365271 -
Flags: review?(edwsmith)
Comment 2•17 years ago
|
||
Comment on attachment 365271 [details] [diff] [review]
remove jit references from verifier
CodegenLIR::writeOp2() OP_callstatic - calls verifier->emitCheckNull(), then CodegenLIR::emitCheckNull() right after it... one of them should go away?
need to delete JIT_ONLY() and XLAT_ONLY() macros
CodegenLIR::opcodeVerified() could be inlined into writeOpcodeVerified()
Attachment #365271 -
Flags: review?(edwsmith) → review+
Comment 3•17 years ago
|
||
(In reply to comment #2)
> CodegenLIR::opcodeVerified() could be inlined into writeOpcodeVerified()
probably more things like this, just noting them as i see them
Updated•17 years ago
|
A few more things that need to be done
- remove CoderContext
- assert that NullWriter and TeeWriter have non-null references and remove guards
- use the base CodeWriter as a stub
- make sure the out of memory handling is correct
I'll probably close this bug after this patch lands so please comment on anything that needs to get done before closing this bug.
Attachment #365762 -
Flags: review?(edwsmith)
btw, this patch fixes addresses all of the above comments from ed and myself
Comment 7•17 years ago
|
||
Comment on attachment 365762 [details] [diff] [review]
clean up from last checkin
Do a quick test of NullWriter in verify(), like this:
NullWriter passthru(coder);
coder = &passthru;
this->coder = coder;
this will make the compiler really use NullWriter, at which point you'll find a couple more problems: emitNip should return void, not bool, and a couple other odds and ends. (i tried this, but i dont have a patch to post).
other than that i think its good to go. no need to re-review.
Attachment #365762 -
Flags: review?(edwsmith) → review+
Comment 8•17 years ago
|
||
Attachment #365919 -
Flags: review?(jodyer)
Comment on attachment 365919 [details] [diff] [review]
one liner to fix missing break statement
let me know if you want me to patch this in the version I'm about to land
Attachment #365919 -
Flags: review?(jodyer) → review+
| Assignee | ||
Comment 10•17 years ago
|
||
changeset 11c431cebd9c completes work on this bug. Further refactoring should be tracked by a new bug.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•