Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Issue 7890031: Mark variables as being accessed from any inner scope, not only function scopes (Closed)

Created:
9 years, 3 months ago by Steven
Modified:
9 years, 3 months ago
CC:
v8-dev
Visibility:
Public.

Description

Mark variables as being accessed from any inner scope, not only function scopes BUG=96523 TEST=mjsunit/regress/regress-96523.js Committed: http://code.google.com/p/v8/source/detail?r=9281

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -15 lines) Patch
M src/scopes.cc View 8 chunks +9 lines, -9 lines 2 comments Download
M src/variables.h View 2 chunks +5 lines, -5 lines 0 comments Download
M src/variables.cc View 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/regress/regress-96523.js View 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Steven
PTAL. http://codereview.chromium.org/7890031/diff/1/src/scopes.cc File src/scopes.cc (left): http://codereview.chromium.org/7890031/diff/1/src/scopes.cc#oldcode855 src/scopes.cc:855: is_function_scope() || from_inner_function, The important change.
9 years, 3 months ago (2011-09-14 13:30:17 UTC) #1
Rico
9 years, 3 months ago (2011-09-14 13:43:25 UTC) #2
LGTM with nit

http://codereview.chromium.org/7890031/diff/1/src/scopes.cc
File src/scopes.cc (right):

http://codereview.chromium.org/7890031/diff/1/src/scopes.cc#newcode853
src/scopes.cc:853: var = outer_scope_->LookupRecursive(
now fits on one line

Powered by Google App Engine
This is Rietveld 408576698