|
Enable lazy compilation for non-trivial outer contexts.
This changes the compiler to be more aggressive about lazy compilation
of closures with non-trivial outer context. Compilation can only be
triggered with a valid outer context now. One exception is the debugger,
which can request compilation of arbitrary shared code, but it ensures
to trigger compilation only at points where no context is needed.
This relands r11782, r11783, r11790 and a minor fix.
R=ulan@chromium.org
TEST=mjsunit/debug-script-breakpoints-nested
Committed: https://code.google.com/p/v8/source/detail?r=11866
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+312 lines, -227 lines) |
Patch |
|
M |
src/ast.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/ast.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/compiler.cc
|
View
|
|
7 chunks |
+15 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/debug.h
|
View
|
|
2 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/debug.cc
|
View
|
|
17 chunks |
+87 lines, -38 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/objects.h
|
View
|
|
4 chunks |
+12 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/objects.cc
|
View
|
|
4 chunks |
+8 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/objects-inl.h
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/parser.cc
|
View
|
|
2 chunks |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/runtime.cc
|
View
|
1
2
3
|
11 chunks |
+99 lines, -90 lines |
0 comments
|
Download
|
|
M |
src/scopes.h
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/scopes.cc
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-debug.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
test/cctest/test-heap.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/debug-script-breakpoints-closure.js
|
View
|
1
|
1 chunk |
+25 lines, -22 lines |
0 comments
|
Download
|
|
A + |
test/mjsunit/debug-script-breakpoints-nested.js
|
View
|
|
3 chunks |
+34 lines, -41 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|