Rearrange the code in Scope::ResolveVariable.
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 19 Feb 2009 15:27:44 +0000 (15:27 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 19 Feb 2009 15:27:44 +0000 (15:27 +0000)
commitc86b47f41499e65eb3bc3d2cef302164775f0f26
tree80e929015aa946e7335747ade5e846afe1a8c9ef
parentbdaf8320e488e9fb2efabe88dc6d64b778e73c2e
Rearrange the code in Scope::ResolveVariable.

I find this clearer and it also enables the DYNAMIC_LOCAL optimization
for code executed by eval that itself uses eval:

 eval("(function() { var x = 2; eval('1'); do stuff with x...; })()")

Review URL: http://codereview.chromium.org/24023

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1322 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/scopes.cc
test/mjsunit/local-load-from-eval.js