WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
15973
Use templates to clean up comparison node code
https://bugs.webkit.org/show_bug.cgi?id=15973
Summary
Use templates to clean up comparison node code
Eric Seidel (no email)
Reported
2007-11-13 16:36:24 PST
Use templates to clean up comparison node code The end goal is to move to op-code generation for a byte-code interpreter. In many existing Node evaluate* calls we do the same set of operations: 1. convert the inputs to a base type we know how to handle 2. do whatever is specific to that node 3. convert the output to whatever type was requested by the caller. I'm trying to get ride of steps 1. and 2. and leave us only with step 3. Steps 1. and 2. are basically copy/paste code and will end up as standard op-code groups which are re-used by lots of Nodes in the bytecode interpreter. I've attached a patch for comment. It's not a perfect solution, but I think it's a good start. I'm not sure the template usage is exactly as I want it to be in the end.
Attachments
a first-pass fix (depends on bug 15972)
(21.38 KB, patch)
2007-11-13 16:37 PST
,
Eric Seidel (no email)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Eric Seidel (no email)
Comment 1
2007-11-13 16:37:20 PST
Created
attachment 17246
[details]
a first-pass fix (depends on
bug 15972
)
Eric Seidel (no email)
Comment 2
2007-11-13 16:40:23 PST
I'd be interested in any comments you all have to offer. I don't yet have a SunSpider number. I think I made a typo in one of the operation implementations, because SunSpider falls to its knees under this patch. I'm investigating that fix now, but that doesn't hold up the process of getting comments on the general design.
Cameron Zwarich (cpst)
Comment 3
2008-09-02 19:51:44 PDT
This is no longer an issue after SquirrelFish.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug