| 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 #ifndef V8_DEBUG_H_ | 5 #ifndef V8_DEBUG_H_ |
| 6 #define V8_DEBUG_H_ | 6 #define V8_DEBUG_H_ |
| 7 | 7 |
| 8 #include "allocation.h" | 8 #include "allocation.h" |
| 9 #include "arguments.h" | 9 #include "arguments.h" |
| 10 #include "assembler.h" | 10 #include "assembler.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // DebugInfo. | 212 // DebugInfo. |
| 213 class Debug { | 213 class Debug { |
| 214 public: | 214 public: |
| 215 bool Load(); | 215 bool Load(); |
| 216 void Unload(); | 216 void Unload(); |
| 217 bool IsLoaded() { return !debug_context_.is_null(); } | 217 bool IsLoaded() { return !debug_context_.is_null(); } |
| 218 bool InDebugger() { return thread_local_.debugger_entry_ != NULL; } | 218 bool InDebugger() { return thread_local_.debugger_entry_ != NULL; } |
| 219 void PreemptionWhileInDebugger(); | 219 void PreemptionWhileInDebugger(); |
| 220 | 220 |
| 221 Object* Break(Arguments args); | 221 Object* Break(Arguments args); |
| 222 void SetBreakPoint(Handle<JSFunction> function, | 222 bool SetBreakPoint(Handle<JSFunction> function, |
| 223 Handle<Object> break_point_object, | 223 Handle<Object> break_point_object, |
| 224 int* source_position); | 224 int* source_position); |
| 225 bool SetBreakPointForScript(Handle<Script> script, | 225 bool SetBreakPointForScript(Handle<Script> script, |
| 226 Handle<Object> break_point_object, | 226 Handle<Object> break_point_object, |
| 227 int* source_position, | 227 int* source_position, |
| 228 BreakPositionAlignment alignment); | 228 BreakPositionAlignment alignment); |
| 229 void ClearBreakPoint(Handle<Object> break_point_object); | 229 void ClearBreakPoint(Handle<Object> break_point_object); |
| 230 void ClearAllBreakPoints(); | 230 void ClearAllBreakPoints(); |
| 231 void FloodWithOneShot(Handle<JSFunction> function); | 231 void FloodWithOneShot(Handle<JSFunction> function); |
| 232 void FloodBoundFunctionWithOneShot(Handle<JSFunction> function); | 232 void FloodBoundFunctionWithOneShot(Handle<JSFunction> function); |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1019 Mutex mutex_; | 1019 Mutex mutex_; |
| 1020 bool already_signalled_; | 1020 bool already_signalled_; |
| 1021 | 1021 |
| 1022 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1022 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
| 1023 }; | 1023 }; |
| 1024 | 1024 |
| 1025 | 1025 |
| 1026 } } // namespace v8::internal | 1026 } } // namespace v8::internal |
| 1027 | 1027 |
| 1028 #endif // V8_DEBUG_H_ | 1028 #endif // V8_DEBUG_H_ |
| OLD | NEW |