| 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 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 void OnBeforeCompile(Handle<Script> script); | 361 void OnBeforeCompile(Handle<Script> script); |
| 362 void OnAfterCompile(Handle<Script> script); | 362 void OnAfterCompile(Handle<Script> script); |
| 363 void OnPromiseEvent(Handle<JSObject> data); | 363 void OnPromiseEvent(Handle<JSObject> data); |
| 364 void OnAsyncTaskEvent(Handle<JSObject> data); | 364 void OnAsyncTaskEvent(Handle<JSObject> data); |
| 365 | 365 |
| 366 // API facing. | 366 // API facing. |
| 367 void SetEventListener(Handle<Object> callback, Handle<Object> data); | 367 void SetEventListener(Handle<Object> callback, Handle<Object> data); |
| 368 void SetMessageHandler(v8::Debug::MessageHandler handler); | 368 void SetMessageHandler(v8::Debug::MessageHandler handler); |
| 369 void EnqueueCommandMessage(Vector<const uint16_t> command, | 369 void EnqueueCommandMessage(Vector<const uint16_t> command, |
| 370 v8::Debug::ClientData* client_data = NULL); | 370 v8::Debug::ClientData* client_data = NULL); |
| 371 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<JSFunction> fun, | 371 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<Object> fun, |
| 372 Handle<Object> data); | 372 Handle<Object> data); |
| 373 Handle<Context> GetDebugContext(); | 373 Handle<Context> GetDebugContext(); |
| 374 void HandleDebugBreak(); | 374 void HandleDebugBreak(); |
| 375 void ProcessDebugMessages(bool debug_command_only); | 375 void ProcessDebugMessages(bool debug_command_only); |
| 376 | 376 |
| 377 // Internal logic | 377 // Internal logic |
| 378 bool Load(); | 378 bool Load(); |
| 379 void Break(Arguments args, JavaScriptFrame*); | 379 void Break(Arguments args, JavaScriptFrame*); |
| 380 void SetAfterBreakTarget(JavaScriptFrame* frame); | 380 void SetAfterBreakTarget(JavaScriptFrame* frame); |
| 381 | 381 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 | 760 |
| 761 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); | 761 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); |
| 762 static void ClearDebugBreakSlot(Address pc); | 762 static void ClearDebugBreakSlot(Address pc); |
| 763 }; | 763 }; |
| 764 | 764 |
| 765 | 765 |
| 766 } // namespace internal | 766 } // namespace internal |
| 767 } // namespace v8 | 767 } // namespace v8 |
| 768 | 768 |
| 769 #endif // V8_DEBUG_DEBUG_H_ | 769 #endif // V8_DEBUG_DEBUG_H_ |
| OLD | NEW |