|
|
|
|
|
by pizlonator
2684 days ago
|
|
Not tracing. Speculation. The difference is that you compile user control flow as-is unless you have overwhelming evidence that you should do otherwise. And yes you are right. This is promising for run-once code, but all of the cost will be in dynamic things like the envGet. An interpreter can actually do better here because most environment resolution can be done as part of bytecode generation. So it’s possible that this experiment leads to something that is slower than JSC’s interpreter. |
|
It is possible to statically decide which environment contains each upvar. So I don't understand your conclusion that this experiment may be slower than JSC's bytecode interpreter. What information can JSC exploit at this stage that is statically unavailable?