DescriptionIn the toplevel compiler, shift the responsibility of assigning a
location to an Expression AST node from the node's parent to the node
itself.
This allows an inherited code generation context from a parent node to
be passed arbitrarily far down the tree (eg, the subexpression of a
unary not is in the same context as the unary expression itself, the
then and else subexpressions of the ternary operator are in the same
context as the whole expression, and so forth).
We do not yet take advantage of this in the backend (eg, the right
subexpression of short-circuited OR is still compiled by using the
parent's destination location, rather than the subexpression's
itself).
Committed: http://code.google.com/p/v8/source/detail?r=3163
Patch Set 1 #
Total comments: 7
Messages
Total messages: 4 (0 generated)
|