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 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 // debug_info which is a FixedArray. Each entry in this list is of class | 399 // debug_info which is a FixedArray. Each entry in this list is of class |
400 // DebugInfo. | 400 // DebugInfo. |
401 class Debug { | 401 class Debug { |
402 public: | 402 public: |
403 // Debug event triggers. | 403 // Debug event triggers. |
404 void OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue); | 404 void OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue); |
405 | 405 |
406 void OnThrow(Handle<Object> exception); | 406 void OnThrow(Handle<Object> exception); |
407 void OnPromiseReject(Handle<Object> promise, Handle<Object> value); | 407 void OnPromiseReject(Handle<Object> promise, Handle<Object> value); |
408 void OnCompileError(Handle<Script> script); | 408 void OnCompileError(Handle<Script> script); |
409 void OnBeforeCompile(Handle<Script> script); | |
410 void OnAfterCompile(Handle<Script> script); | 409 void OnAfterCompile(Handle<Script> script); |
411 void OnAsyncTaskEvent(Handle<String> type, Handle<Object> id, | 410 void OnAsyncTaskEvent(Handle<String> type, Handle<Object> id, |
412 Handle<String> name); | 411 Handle<String> name); |
413 | 412 |
414 // API facing. | 413 // API facing. |
415 void SetEventListener(Handle<Object> callback, Handle<Object> data); | 414 void SetEventListener(Handle<Object> callback, Handle<Object> data); |
416 void SetMessageHandler(v8::Debug::MessageHandler handler); | 415 void SetMessageHandler(v8::Debug::MessageHandler handler); |
417 void EnqueueCommandMessage(Vector<const uint16_t> command, | 416 void EnqueueCommandMessage(Vector<const uint16_t> command, |
418 v8::Debug::ClientData* client_data = NULL); | 417 v8::Debug::ClientData* client_data = NULL); |
419 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<Object> fun, | 418 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<Object> fun, |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
813 Handle<Code> code); | 812 Handle<Code> code); |
814 static bool DebugBreakSlotIsPatched(Address pc); | 813 static bool DebugBreakSlotIsPatched(Address pc); |
815 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 814 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
816 }; | 815 }; |
817 | 816 |
818 | 817 |
819 } // namespace internal | 818 } // namespace internal |
820 } // namespace v8 | 819 } // namespace v8 |
821 | 820 |
822 #endif // V8_DEBUG_DEBUG_H_ | 821 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |