|
Introduce scopes to keep track of catch blocks at compile time.
The catch variable is bound in the catch scope. For simplicity in this
initial implementation, it is always allocated even if unused and always
allocated to a catch context even if it doesn't escape. The presence of
catch is no longer treated as a with.
In this change, care must be taken to distinguish between the scope where a
var declaration is hoisted to and the scope where the initialization occurs.
R=ager@chromium.org
BUG=
TEST=
Committed: http://code.google.com/p/v8/source/detail?r=8496
Total comments: 15
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+246 lines, -177 lines) |
Patch |
|
M |
src/arm/full-codegen-arm.cc
|
View
|
1
|
10 chunks |
+14 lines, -11 lines |
2 comments
|
Download
|
|
M |
src/ast.h
|
View
|
|
1 chunk |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.h
|
View
|
1
|
3 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
src/full-codegen.cc
|
View
|
|
3 chunks |
+6 lines, -2 lines |
6 comments
|
Download
|
|
M |
src/ia32/full-codegen-ia32.cc
|
View
|
1
|
13 chunks |
+19 lines, -20 lines |
0 comments
|
Download
|
|
M |
src/parser.h
|
View
|
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
|
23 chunks |
+83 lines, -50 lines |
5 comments
|
Download
|
|
M |
src/prettyprinter.cc
|
View
|
|
3 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/rewriter.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/runtime.cc
|
View
|
1
|
3 chunks |
+42 lines, -37 lines |
1 comment
|
Download
|
|
M |
src/scopes.h
|
View
|
|
3 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/scopes.cc
|
View
|
|
4 chunks |
+28 lines, -16 lines |
0 comments
|
Download
|
|
M |
src/x64/full-codegen-x64.cc
|
View
|
1
|
13 chunks |
+17 lines, -18 lines |
0 comments
|
Download
|
|
M |
test/mjsunit/mjsunit.status
|
View
|
|
2 chunks |
+5 lines, -1 line |
1 comment
|
Download
|
Total messages: 4 (0 generated)
|