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

Side by Side Diff: src/debug/liveedit.cc

Issue 2090723005: [builtins] New frame type for exits to C++ builtins (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1675 return target.GetNotFoundMessage(); 1675 return target.GetNotFoundMessage();
1676 } 1676 }
1677 1677
1678 bool target_frame_found = false; 1678 bool target_frame_found = false;
1679 int bottom_js_frame_index = top_frame_index; 1679 int bottom_js_frame_index = top_frame_index;
1680 bool non_droppable_frame_found = false; 1680 bool non_droppable_frame_found = false;
1681 LiveEdit::FunctionPatchabilityStatus non_droppable_reason; 1681 LiveEdit::FunctionPatchabilityStatus non_droppable_reason;
1682 1682
1683 for (; frame_index < frames.length(); frame_index++) { 1683 for (; frame_index < frames.length(); frame_index++) {
1684 StackFrame* frame = frames[frame_index]; 1684 StackFrame* frame = frames[frame_index];
1685 if (frame->is_exit()) { 1685 if (frame->is_exit() || frame->is_builtin_exit()) {
1686 non_droppable_frame_found = true; 1686 non_droppable_frame_found = true;
1687 non_droppable_reason = LiveEdit::FUNCTION_BLOCKED_UNDER_NATIVE_CODE; 1687 non_droppable_reason = LiveEdit::FUNCTION_BLOCKED_UNDER_NATIVE_CODE;
1688 break; 1688 break;
1689 } 1689 }
1690 if (frame->is_java_script()) { 1690 if (frame->is_java_script()) {
1691 SharedFunctionInfo* shared = 1691 SharedFunctionInfo* shared =
1692 JavaScriptFrame::cast(frame)->function()->shared(); 1692 JavaScriptFrame::cast(frame)->function()->shared();
1693 if (shared->is_resumable()) { 1693 if (shared->is_resumable()) {
1694 non_droppable_frame_found = true; 1694 non_droppable_frame_found = true;
1695 non_droppable_reason = LiveEdit::FUNCTION_BLOCKED_UNDER_GENERATOR; 1695 non_droppable_reason = LiveEdit::FUNCTION_BLOCKED_UNDER_GENERATOR;
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 scope_info_length++; 2060 scope_info_length++;
2061 2061
2062 current_scope = current_scope->outer_scope(); 2062 current_scope = current_scope->outer_scope();
2063 } 2063 }
2064 2064
2065 return scope_info_list; 2065 return scope_info_list;
2066 } 2066 }
2067 2067
2068 } // namespace internal 2068 } // namespace internal
2069 } // namespace v8 2069 } // namespace v8
OLDNEW
« src/builtins.h ('K') | « src/counters.cc ('k') | src/external-reference-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698