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

Issue 202005: Add ScopeTypeCatch to ScopeIterator (Closed)

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

Description

Added new scope type ScopeIterator::ScopeTypeCatch for with generated from catch blocks. Removed a false assertion in ScopeIterator that assumed context extension to never be a JSContextExtensionObject. The context extension object in a 'with' context is JSContextExtensionObject iff the 'with' statement is generated from a catch block in order to extend its local scope with a variable holding exception object. This is how we differentiate 'catch' scope from 'with' scope. Chrome bug: http://code.google.com/p/chromium/issues/detail?id=17229 Committed: http://code.google.com/p/v8/source/detail?r=2843

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -4 lines) Patch
M src/d8.js View 2 chunks +6 lines, -1 line 0 comments Download
M src/mirror-delay.js View 1 chunk +2 lines, -1 line 0 comments Download
M src/runtime.cc View 1 4 chunks +23 lines, -2 lines 0 comments Download
M test/mjsunit/debug-scopes.js View 1 2 chunks +101 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
yurys
11 years, 3 months ago (2009-09-07 18:24:36 UTC) #1
Søren Thygesen Gjesse
LGTM, but please look into whether adding a new scope type ScopeTypeCatch is feasible. http://codereview.chromium.org/202005/diff/1/2 ...
11 years, 3 months ago (2009-09-08 06:42:14 UTC) #2
yurys
http://codereview.chromium.org/202005/diff/1/2 File src/runtime.cc (right): http://codereview.chromium.org/202005/diff/1/2#newcode6420 Line 6420: // Current scop is either an explicit with ...
11 years, 3 months ago (2009-09-08 09:29:06 UTC) #3
Søren Thygesen Gjesse
LGTM Please ass the now scope type to http://code.google.com/p/v8/wiki/DebuggerProtocol as well.
11 years, 3 months ago (2009-09-08 10:08:38 UTC) #4
yurys
11 years, 3 months ago (2009-09-08 10:23:31 UTC) #5
On 2009/09/08 10:08:38, Søren Gjesse wrote:
> LGTM
> 
> Please ass the now scope type to
> http://code.google.com/p/v8/wiki/DebuggerProtocol as well.

Done.

Powered by Google App Engine
This is Rietveld 408576698