OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/debug/liveedit.h" | 5 #include "src/debug/liveedit.h" |
6 | 6 |
7 #include "src/ast/scopeinfo.h" | 7 #include "src/ast/scopeinfo.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/compilation-cache.h" | 10 #include "src/compilation-cache.h" |
(...skipping 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 for (; frame_index < frames.length(); frame_index++) { | 1673 for (; frame_index < frames.length(); frame_index++) { |
1674 StackFrame* frame = frames[frame_index]; | 1674 StackFrame* frame = frames[frame_index]; |
1675 if (frame->is_exit()) { | 1675 if (frame->is_exit()) { |
1676 non_droppable_frame_found = true; | 1676 non_droppable_frame_found = true; |
1677 non_droppable_reason = LiveEdit::FUNCTION_BLOCKED_UNDER_NATIVE_CODE; | 1677 non_droppable_reason = LiveEdit::FUNCTION_BLOCKED_UNDER_NATIVE_CODE; |
1678 break; | 1678 break; |
1679 } | 1679 } |
1680 if (frame->is_java_script()) { | 1680 if (frame->is_java_script()) { |
1681 SharedFunctionInfo* shared = | 1681 SharedFunctionInfo* shared = |
1682 JavaScriptFrame::cast(frame)->function()->shared(); | 1682 JavaScriptFrame::cast(frame)->function()->shared(); |
1683 if (shared->is_generator()) { | 1683 if (shared->is_resumable()) { |
1684 non_droppable_frame_found = true; | 1684 non_droppable_frame_found = true; |
1685 non_droppable_reason = LiveEdit::FUNCTION_BLOCKED_UNDER_GENERATOR; | 1685 non_droppable_reason = LiveEdit::FUNCTION_BLOCKED_UNDER_GENERATOR; |
1686 break; | 1686 break; |
1687 } | 1687 } |
1688 } | 1688 } |
1689 if (target.MatchActivation( | 1689 if (target.MatchActivation( |
1690 frame, LiveEdit::FUNCTION_BLOCKED_ON_ACTIVE_STACK)) { | 1690 frame, LiveEdit::FUNCTION_BLOCKED_ON_ACTIVE_STACK)) { |
1691 target_frame_found = true; | 1691 target_frame_found = true; |
1692 bottom_js_frame_index = frame_index; | 1692 bottom_js_frame_index = frame_index; |
1693 } | 1693 } |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2043 scope_info_length++; | 2043 scope_info_length++; |
2044 | 2044 |
2045 current_scope = current_scope->outer_scope(); | 2045 current_scope = current_scope->outer_scope(); |
2046 } | 2046 } |
2047 | 2047 |
2048 return scope_info_list; | 2048 return scope_info_list; |
2049 } | 2049 } |
2050 | 2050 |
2051 } // namespace internal | 2051 } // namespace internal |
2052 } // namespace v8 | 2052 } // namespace v8 |
OLD | NEW |