| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 // Check whether a global object is the debug global object. | 382 // Check whether a global object is the debug global object. |
| 383 bool IsDebugGlobal(JSGlobalObject* global); | 383 bool IsDebugGlobal(JSGlobalObject* global); |
| 384 | 384 |
| 385 // Check whether this frame is just about to return. | 385 // Check whether this frame is just about to return. |
| 386 bool IsBreakAtReturn(JavaScriptFrame* frame); | 386 bool IsBreakAtReturn(JavaScriptFrame* frame); |
| 387 | 387 |
| 388 // Support for LiveEdit | 388 // Support for LiveEdit |
| 389 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, | 389 void FramesHaveBeenDropped(StackFrame::Id new_break_frame_id, |
| 390 LiveEditFrameDropMode mode); | 390 LiveEditFrameDropMode mode); |
| 391 | 391 |
| 392 bool IsFrameBlackboxed(JavaScriptFrame* frame); |
| 393 |
| 392 // Threading support. | 394 // Threading support. |
| 393 char* ArchiveDebug(char* to); | 395 char* ArchiveDebug(char* to); |
| 394 char* RestoreDebug(char* from); | 396 char* RestoreDebug(char* from); |
| 395 static int ArchiveSpacePerThread(); | 397 static int ArchiveSpacePerThread(); |
| 396 void FreeThreadResources() { } | 398 void FreeThreadResources() { } |
| 397 void Iterate(ObjectVisitor* v); | 399 void Iterate(ObjectVisitor* v); |
| 398 | 400 |
| 399 bool CheckExecutionState(int id) { | 401 bool CheckExecutionState(int id) { |
| 400 return CheckExecutionState() && break_id() == id; | 402 return CheckExecutionState() && break_id() == id; |
| 401 } | 403 } |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 // more specific event listeners for part of events. Calling of | 493 // more specific event listeners for part of events. Calling of |
| 492 // C++ event listener is redundant when more specific event listener | 494 // C++ event listener is redundant when more specific event listener |
| 493 // is presented. Other clients can install JavaScript event listener | 495 // is presented. Other clients can install JavaScript event listener |
| 494 // (e.g. some of NodeJS module). | 496 // (e.g. some of NodeJS module). |
| 495 bool non_inspector_listener_exists() const { | 497 bool non_inspector_listener_exists() const { |
| 496 return !event_listener_.is_null() && !event_listener_->IsForeign(); | 498 return !event_listener_.is_null() && !event_listener_->IsForeign(); |
| 497 } | 499 } |
| 498 | 500 |
| 499 bool IsBlackboxed(SharedFunctionInfo* shared); | 501 bool IsBlackboxed(SharedFunctionInfo* shared); |
| 500 bool IsExceptionBlackboxed(bool uncaught); | 502 bool IsExceptionBlackboxed(bool uncaught); |
| 501 bool IsFrameBlackboxed(JavaScriptFrame* frame); | |
| 502 | 503 |
| 503 void OnException(Handle<Object> exception, Handle<Object> promise); | 504 void OnException(Handle<Object> exception, Handle<Object> promise); |
| 504 | 505 |
| 505 // Constructors for debug event objects. | 506 // Constructors for debug event objects. |
| 506 MUST_USE_RESULT MaybeHandle<Object> MakeExecutionState(); | 507 MUST_USE_RESULT MaybeHandle<Object> MakeExecutionState(); |
| 507 MUST_USE_RESULT MaybeHandle<Object> MakeBreakEvent( | 508 MUST_USE_RESULT MaybeHandle<Object> MakeBreakEvent( |
| 508 Handle<Object> break_points_hit); | 509 Handle<Object> break_points_hit); |
| 509 MUST_USE_RESULT MaybeHandle<Object> MakeExceptionEvent( | 510 MUST_USE_RESULT MaybeHandle<Object> MakeExceptionEvent( |
| 510 Handle<Object> exception, | 511 Handle<Object> exception, |
| 511 bool uncaught, | 512 bool uncaught, |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 761 Handle<Code> code); | 762 Handle<Code> code); |
| 762 static bool DebugBreakSlotIsPatched(Address pc); | 763 static bool DebugBreakSlotIsPatched(Address pc); |
| 763 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); | 764 static void ClearDebugBreakSlot(Isolate* isolate, Address pc); |
| 764 }; | 765 }; |
| 765 | 766 |
| 766 | 767 |
| 767 } // namespace internal | 768 } // namespace internal |
| 768 } // namespace v8 | 769 } // namespace v8 |
| 769 | 770 |
| 770 #endif // V8_DEBUG_DEBUG_H_ | 771 #endif // V8_DEBUG_DEBUG_H_ |
| OLD | NEW |