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

Side by Side Diff: src/liveedit.cc

Issue 297303006: Some more debugger-related refactorings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5
6 #include "v8.h" 6 #include "v8.h"
7 7
8 #include "liveedit.h" 8 #include "liveedit.h"
9 9
10 #include "code-stubs.h" 10 #include "code-stubs.h"
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 } 1843 }
1844 1844
1845 // Adjust break_frame after some frames has been dropped. 1845 // Adjust break_frame after some frames has been dropped.
1846 StackFrame::Id new_id = StackFrame::NO_ID; 1846 StackFrame::Id new_id = StackFrame::NO_ID;
1847 for (int i = bottom_js_frame_index + 1; i < frames.length(); i++) { 1847 for (int i = bottom_js_frame_index + 1; i < frames.length(); i++) {
1848 if (frames[i]->type() == StackFrame::JAVA_SCRIPT) { 1848 if (frames[i]->type() == StackFrame::JAVA_SCRIPT) {
1849 new_id = frames[i]->id(); 1849 new_id = frames[i]->id();
1850 break; 1850 break;
1851 } 1851 }
1852 } 1852 }
1853 debug->FramesHaveBeenDropped(new_id, drop_mode, 1853 debug->FramesHaveBeenDropped(
1854 restarter_frame_function_pointer); 1854 new_id, drop_mode, restarter_frame_function_pointer);
1855 return NULL; 1855 return NULL;
1856 } 1856 }
1857 1857
1858 1858
1859 // Fills result array with statuses of functions. Modifies the stack 1859 // Fills result array with statuses of functions. Modifies the stack
1860 // removing all listed function if possible and if do_drop is true. 1860 // removing all listed function if possible and if do_drop is true.
1861 static const char* DropActivationsInActiveThread( 1861 static const char* DropActivationsInActiveThread(
1862 Handle<JSArray> shared_info_array, Handle<JSArray> result, bool do_drop) { 1862 Handle<JSArray> shared_info_array, Handle<JSArray> result, bool do_drop) {
1863 MultipleFunctionTarget target(shared_info_array, result); 1863 MultipleFunctionTarget target(shared_info_array, result);
1864 1864
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
2074 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { 2074 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) {
2075 isolate_->active_function_info_listener()->FunctionCode(code); 2075 isolate_->active_function_info_listener()->FunctionCode(code);
2076 } 2076 }
2077 2077
2078 2078
2079 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 2079 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
2080 return isolate->active_function_info_listener() != NULL; 2080 return isolate->active_function_info_listener() != NULL;
2081 } 2081 }
2082 2082
2083 } } // namespace v8::internal 2083 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698