Closed Bug 558815 Opened 14 years ago Closed 13 years ago

Consider doing dispatch over finalization kind in NewObject

Categories

(Core :: JavaScript Engine, enhancement)

Other
Other
enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: igor, Assigned: igor)

References

Details

+++ This bug was initially created as a clone of Bug #558003 +++

Currently the inlined NewObject does the dispatch over the class pointer to find the right type of NewGC(Object|Function|Iter). That dispatch cannot be resolved at the compile time since the js_FunctionClass etc. is not compile-time constant. This suggests to try to do the dispatch over explicit finalization kind which the compiler can resolve.
This was long resolved with templates.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.