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

Side by Side Diff: src/debug/debug.h

Issue 2801073006: Decouple root visitors from object visitors. (Closed)
Patch Set: rebase Created 3 years, 8 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 #ifndef V8_DEBUG_DEBUG_H_ 5 #ifndef V8_DEBUG_DEBUG_H_
6 #define V8_DEBUG_DEBUG_H_ 6 #define V8_DEBUG_DEBUG_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/base/atomicops.h" 10 #include "src/base/atomicops.h"
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // Support for LiveEdit 358 // Support for LiveEdit
359 void ScheduleFrameRestart(StackFrame* frame); 359 void ScheduleFrameRestart(StackFrame* frame);
360 360
361 bool AllFramesOnStackAreBlackboxed(); 361 bool AllFramesOnStackAreBlackboxed();
362 362
363 // Threading support. 363 // Threading support.
364 char* ArchiveDebug(char* to); 364 char* ArchiveDebug(char* to);
365 char* RestoreDebug(char* from); 365 char* RestoreDebug(char* from);
366 static int ArchiveSpacePerThread(); 366 static int ArchiveSpacePerThread();
367 void FreeThreadResources() { } 367 void FreeThreadResources() { }
368 void Iterate(ObjectVisitor* v); 368 void Iterate(RootVisitor* v);
369 369
370 bool CheckExecutionState(int id) { 370 bool CheckExecutionState(int id) {
371 return CheckExecutionState() && break_id() == id; 371 return CheckExecutionState() && break_id() == id;
372 } 372 }
373 373
374 bool CheckExecutionState() { 374 bool CheckExecutionState() {
375 return is_active() && !debug_context().is_null() && break_id() != 0; 375 return is_active() && !debug_context().is_null() && break_id() != 0;
376 } 376 }
377 377
378 bool PerformSideEffectCheck(Handle<JSFunction> function); 378 bool PerformSideEffectCheck(Handle<JSFunction> function);
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 Handle<Code> code); 807 Handle<Code> code);
808 static bool DebugBreakSlotIsPatched(Address pc); 808 static bool DebugBreakSlotIsPatched(Address pc);
809 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); 809 static void ClearDebugBreakSlot(Isolate* isolate, Address pc);
810 }; 810 };
811 811
812 812
813 } // namespace internal 813 } // namespace internal
814 } // namespace v8 814 } // namespace v8
815 815
816 #endif // V8_DEBUG_DEBUG_H_ 816 #endif // V8_DEBUG_DEBUG_H_
OLDNEW
« no previous file with comments | « src/compilation-cache.cc ('k') | src/debug/debug.cc » ('j') | src/heap/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698