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_H_ | 5 #ifndef V8_DEBUG_H_ |
6 #define V8_DEBUG_H_ | 6 #define V8_DEBUG_H_ |
7 | 7 |
8 #include "allocation.h" | 8 #include "allocation.h" |
9 #include "arguments.h" | 9 #include "arguments.h" |
10 #include "assembler.h" | 10 #include "assembler.h" |
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 bool uncaught, | 773 bool uncaught, |
774 Handle<Object> promise); | 774 Handle<Object> promise); |
775 MUST_USE_RESULT MaybeHandle<Object> MakeCompileEvent( | 775 MUST_USE_RESULT MaybeHandle<Object> MakeCompileEvent( |
776 Handle<Script> script, bool before); | 776 Handle<Script> script, bool before); |
777 MUST_USE_RESULT MaybeHandle<Object> MakeScriptCollectedEvent(int id); | 777 MUST_USE_RESULT MaybeHandle<Object> MakeScriptCollectedEvent(int id); |
778 | 778 |
779 void OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue); | 779 void OnDebugBreak(Handle<Object> break_points_hit, bool auto_continue); |
780 void OnException(Handle<Object> exception, | 780 void OnException(Handle<Object> exception, |
781 bool uncaught, | 781 bool uncaught, |
782 Handle<Object> promise = Handle<Object>::null()); | 782 Handle<Object> promise = Handle<Object>::null()); |
| 783 void OnSyntaxError(Handle<Script> script); |
783 void OnBeforeCompile(Handle<Script> script); | 784 void OnBeforeCompile(Handle<Script> script); |
784 | 785 |
785 enum AfterCompileFlags { | 786 enum AfterCompileFlags { |
786 NO_AFTER_COMPILE_FLAGS, | 787 NO_AFTER_COMPILE_FLAGS, |
787 SEND_WHEN_DEBUGGING | 788 SEND_WHEN_DEBUGGING |
788 }; | 789 }; |
789 void OnAfterCompile(Handle<Script> script, | 790 void OnAfterCompile(Handle<Script> script, |
790 AfterCompileFlags after_compile_flags); | 791 AfterCompileFlags after_compile_flags); |
791 void OnScriptCollected(int id); | 792 void OnScriptCollected(int id); |
792 void ProcessDebugEvent(v8::DebugEvent event, | 793 void ProcessDebugEvent(v8::DebugEvent event, |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1036 Mutex mutex_; | 1037 Mutex mutex_; |
1037 bool already_signalled_; | 1038 bool already_signalled_; |
1038 | 1039 |
1039 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1040 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
1040 }; | 1041 }; |
1041 | 1042 |
1042 | 1043 |
1043 } } // namespace v8::internal | 1044 } } // namespace v8::internal |
1044 | 1045 |
1045 #endif // V8_DEBUG_H_ | 1046 #endif // V8_DEBUG_H_ |
OLD | NEW |