|
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.
R=ulan@chromium.org
TEST=mjsunit/debug-script-breakpoints-nested
Committed: https://code.google.com/p/v8/source/detail?r=11782
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+287 lines, -127 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
|
1
|
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
|
1
|
17 chunks |
+87 lines, -38 lines |
0 comments
|
Download
|
|
M |
src/full-codegen.cc
|
View
|
1
|
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/runtime.cc
|
View
|
|
11 chunks |
+51 lines, -56 lines |
0 comments
|
Download
|
|
M |
src/scopes.h
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/scopes.cc
|
View
|
1
|
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-nested.js
|
View
|
1
|
1 chunk |
+82 lines, -0 lines |
0 comments
|
Download
|
Total messages: 3 (0 generated)
|