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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 Handle<Object> break_points_hit); | 494 Handle<Object> break_points_hit); |
495 MUST_USE_RESULT MaybeHandle<Object> MakeExceptionEvent( | 495 MUST_USE_RESULT MaybeHandle<Object> MakeExceptionEvent( |
496 Handle<Object> exception, | 496 Handle<Object> exception, |
497 bool uncaught, | 497 bool uncaught, |
498 Handle<Object> promise); | 498 Handle<Object> promise); |
499 MUST_USE_RESULT MaybeHandle<Object> MakeCompileEvent( | 499 MUST_USE_RESULT MaybeHandle<Object> MakeCompileEvent( |
500 Handle<Script> script, v8::DebugEvent type); | 500 Handle<Script> script, v8::DebugEvent type); |
501 MUST_USE_RESULT MaybeHandle<Object> MakeAsyncTaskEvent(Handle<Smi> type, | 501 MUST_USE_RESULT MaybeHandle<Object> MakeAsyncTaskEvent(Handle<Smi> type, |
502 Handle<Smi> id); | 502 Handle<Smi> id); |
503 | 503 |
504 // Mirror cache handling. | |
505 void ClearMirrorCache(); | |
506 | |
507 void ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script); | 504 void ProcessCompileEvent(v8::DebugEvent event, Handle<Script> script); |
508 void ProcessDebugEvent(v8::DebugEvent event, Handle<JSObject> event_data); | 505 void ProcessDebugEvent(v8::DebugEvent event, Handle<JSObject> event_data); |
509 | 506 |
510 // Find the closest source position for a break point for a given position. | 507 // Find the closest source position for a break point for a given position. |
511 int FindBreakablePosition(Handle<DebugInfo> debug_info, int source_position, | 508 int FindBreakablePosition(Handle<DebugInfo> debug_info, int source_position, |
512 BreakPositionAlignment alignment); | 509 BreakPositionAlignment alignment); |
513 // Instrument code to break at break points. | 510 // Instrument code to break at break points. |
514 void ApplyBreakPoints(Handle<DebugInfo> debug_info); | 511 void ApplyBreakPoints(Handle<DebugInfo> debug_info); |
515 // Clear code from instrumentation. | 512 // Clear code from instrumentation. |
516 void ClearBreakPoints(Handle<DebugInfo> debug_info); | 513 void ClearBreakPoints(Handle<DebugInfo> debug_info); |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 Handle<Code> code); | 737 Handle<Code> code); |
741 static bool DebugBreakSlotIsPatched(Address pc); | 738 static bool DebugBreakSlotIsPatched(Address pc); |
742 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 739 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
743 }; | 740 }; |
744 | 741 |
745 | 742 |
746 } // namespace internal | 743 } // namespace internal |
747 } // namespace v8 | 744 } // namespace v8 |
748 | 745 |
749 #endif // V8_DEBUG_DEBUG_H_ | 746 #endif // V8_DEBUG_DEBUG_H_ |
OLD | NEW |