You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
890140d73b
Before this commit, each node was responsible for computing the value of its |resultIndex| property in the |computeVarIndices| pass. This was possible because |resultIndex| was always equal to |index.result|, meaning that nodes always wrote their match results to the top of the stack. This behavior would cause problems in the future where nodes will use the stack also for storing positions. Parent nodes storing position on the stack would have to copy their childs' match results from the top of the stack to some position below where parent's match result would be expected. There would be no way to tell the children to place their match result somewhere else than the top of the stack and avoid copying. This commit fixes the described problem by shifting the responsibility for setting the value of node's |resultIndex| property to its parent. This way it can direct its child to place its result wherever it wants to. |
12 years ago | |
---|---|---|
.. | ||
compute-params.js | 12 years ago | |
compute-var-indices.js | 12 years ago | |
generate-code.js | 12 years ago | |
remove-proxy-rules.js | 12 years ago | |
report-left-recursion.js | 12 years ago | |
report-missing-rules.js | 12 years ago |