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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 v8::Debug::ClientData* client_data = NULL); | 424 v8::Debug::ClientData* client_data = NULL); |
425 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<Object> fun, | 425 MUST_USE_RESULT MaybeHandle<Object> Call(Handle<Object> fun, |
426 Handle<Object> data); | 426 Handle<Object> data); |
427 Handle<Context> GetDebugContext(); | 427 Handle<Context> GetDebugContext(); |
428 void HandleDebugBreak(); | 428 void HandleDebugBreak(); |
429 void ProcessDebugMessages(bool debug_command_only); | 429 void ProcessDebugMessages(bool debug_command_only); |
430 | 430 |
431 // Internal logic | 431 // Internal logic |
432 bool Load(); | 432 bool Load(); |
433 void Break(Arguments args, JavaScriptFrame*); | 433 void Break(Arguments args, JavaScriptFrame*); |
434 void SetAfterBreakTarget(JavaScriptFrame* frame); | 434 Object* SetAfterBreakTarget(JavaScriptFrame* frame); |
435 | 435 |
436 // Scripts handling. | 436 // Scripts handling. |
437 Handle<FixedArray> GetLoadedScripts(); | 437 Handle<FixedArray> GetLoadedScripts(); |
438 | 438 |
439 // Break point handling. | 439 // Break point handling. |
440 bool SetBreakPoint(Handle<JSFunction> function, | 440 bool SetBreakPoint(Handle<JSFunction> function, |
441 Handle<Object> break_point_object, | 441 Handle<Object> break_point_object, |
442 int* source_position); | 442 int* source_position); |
443 bool SetBreakPointForScript(Handle<Script> script, | 443 bool SetBreakPointForScript(Handle<Script> script, |
444 Handle<Object> break_point_object, | 444 Handle<Object> break_point_object, |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 Handle<Code> code); | 791 Handle<Code> code); |
792 static bool DebugBreakSlotIsPatched(Address pc); | 792 static bool DebugBreakSlotIsPatched(Address pc); |
793 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 793 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
794 }; | 794 }; |
795 | 795 |
796 | 796 |
797 } // namespace internal | 797 } // namespace internal |
798 } // namespace v8 | 798 } // namespace v8 |
799 | 799 |
800 #endif // V8_DEBUG_DEBUG_H_ | 800 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |