| 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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<JSFunction> fun, |
| 372 Handle<Object> data); | 372 Handle<Object> data); |
| 373 Handle<Context> GetDebugContext(); | 373 Handle<Context> GetDebugContext(); |
| 374 void HandleDebugBreak(); | 374 void HandleDebugBreak( |
| 375 BreakInNonDebuggableFlag flag = DontBreakInNonDebuggable); |
| 375 void ProcessDebugMessages(bool debug_command_only); | 376 void ProcessDebugMessages(bool debug_command_only); |
| 376 | 377 |
| 377 // Internal logic | 378 // Internal logic |
| 378 bool Load(); | 379 bool Load(); |
| 379 void Break(Arguments args, JavaScriptFrame*); | 380 void Break(Arguments args, JavaScriptFrame*); |
| 380 void SetAfterBreakTarget(JavaScriptFrame* frame); | 381 void SetAfterBreakTarget(JavaScriptFrame* frame); |
| 381 | 382 |
| 382 // Scripts handling. | 383 // Scripts handling. |
| 383 Handle<FixedArray> GetLoadedScripts(); | 384 Handle<FixedArray> GetLoadedScripts(); |
| 384 | 385 |
| (...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 int call_argc = -1); | 761 int call_argc = -1); |
| 761 | 762 |
| 762 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); | 763 static void PatchDebugBreakSlot(Address pc, Handle<Code> code); |
| 763 static void ClearDebugBreakSlot(Address pc); | 764 static void ClearDebugBreakSlot(Address pc); |
| 764 }; | 765 }; |
| 765 | 766 |
| 766 | 767 |
| 767 } } // namespace v8::internal | 768 } } // namespace v8::internal |
| 768 | 769 |
| 769 #endif // V8_DEBUG_DEBUG_H_ | 770 #endif // V8_DEBUG_DEBUG_H_ |
| OLD | NEW |