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_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/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 // debug_info which is a FixedArray. Each entry in this list is of class | 297 // debug_info which is a FixedArray. Each entry in this list is of class |
298 // DebugInfo. | 298 // DebugInfo. |
299 class Debug { | 299 class Debug { |
300 public: | 300 public: |
301 // Debug event triggers. | 301 // Debug event triggers. |
302 void OnDebugBreak(Handle<Object> break_points_hit); | 302 void OnDebugBreak(Handle<Object> break_points_hit); |
303 | 303 |
304 void OnThrow(Handle<Object> exception); | 304 void OnThrow(Handle<Object> exception); |
305 void OnPromiseReject(Handle<Object> promise, Handle<Object> value); | 305 void OnPromiseReject(Handle<Object> promise, Handle<Object> value); |
306 void OnCompileError(Handle<Script> script); | 306 void OnCompileError(Handle<Script> script); |
307 void OnBeforeCompile(Handle<Script> script); | |
308 void OnAfterCompile(Handle<Script> script); | 307 void OnAfterCompile(Handle<Script> script); |
309 void OnAsyncTaskEvent(Handle<String> type, Handle<Object> id, | 308 void OnAsyncTaskEvent(Handle<String> type, Handle<Object> id, |
310 Handle<String> name); | 309 Handle<String> name); |
311 | 310 |
312 // API facing. | 311 // API facing. |
313 void SetEventListener(Handle<Object> callback, Handle<Object> data); | 312 void SetEventListener(Handle<Object> callback, Handle<Object> data); |
314 void SetMessageHandler(v8::Debug::MessageHandler handler); | 313 void SetMessageHandler(v8::Debug::MessageHandler handler); |
315 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<Object> fun, | 314 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<Object> fun, |
316 Handle<Object> data); | 315 Handle<Object> data); |
317 Handle<Context> GetDebugContext(); | 316 Handle<Context> GetDebugContext(); |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 Handle<Code> code); | 699 Handle<Code> code); |
701 static bool DebugBreakSlotIsPatched(Address pc); | 700 static bool DebugBreakSlotIsPatched(Address pc); |
702 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 701 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
703 }; | 702 }; |
704 | 703 |
705 | 704 |
706 } // namespace internal | 705 } // namespace internal |
707 } // namespace v8 | 706 } // namespace v8 |
708 | 707 |
709 #endif // V8_DEBUG_DEBUG_H_ | 708 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |