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_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include "include/v8-debug.h" | 9 #include "include/v8-debug.h" |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 bool capture, | 711 bool capture, |
712 int frame_limit, | 712 int frame_limit, |
713 StackTrace::StackTraceOptions options); | 713 StackTrace::StackTraceOptions options); |
714 | 714 |
715 enum PrintStackMode { kPrintStackConcise, kPrintStackVerbose }; | 715 enum PrintStackMode { kPrintStackConcise, kPrintStackVerbose }; |
716 void PrintCurrentStackTrace(FILE* out); | 716 void PrintCurrentStackTrace(FILE* out); |
717 void PrintStack(StringStream* accumulator, | 717 void PrintStack(StringStream* accumulator, |
718 PrintStackMode mode = kPrintStackVerbose); | 718 PrintStackMode mode = kPrintStackVerbose); |
719 void PrintStack(FILE* out, PrintStackMode mode = kPrintStackVerbose); | 719 void PrintStack(FILE* out, PrintStackMode mode = kPrintStackVerbose); |
720 Handle<String> StackTraceString(); | 720 Handle<String> StackTraceString(); |
721 NO_INLINE(void PushStackTraceAndDie(unsigned int magic, | 721 NO_INLINE(void PushStackTraceAndDie(unsigned int magic, void* ptr1, |
722 Object* object, | 722 void* ptr2, unsigned int magic2)); |
723 Map* map, | |
724 unsigned int magic2)); | |
725 Handle<JSArray> CaptureCurrentStackTrace( | 723 Handle<JSArray> CaptureCurrentStackTrace( |
726 int frame_limit, | 724 int frame_limit, |
727 StackTrace::StackTraceOptions options); | 725 StackTrace::StackTraceOptions options); |
728 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, | 726 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, |
729 Handle<Object> caller); | 727 Handle<Object> caller); |
730 MaybeHandle<JSObject> CaptureAndSetDetailedStackTrace( | 728 MaybeHandle<JSObject> CaptureAndSetDetailedStackTrace( |
731 Handle<JSObject> error_object); | 729 Handle<JSObject> error_object); |
732 MaybeHandle<JSObject> CaptureAndSetSimpleStackTrace( | 730 MaybeHandle<JSObject> CaptureAndSetSimpleStackTrace( |
733 Handle<JSObject> error_object, Handle<Object> caller); | 731 Handle<JSObject> error_object, Handle<Object> caller); |
734 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object); | 732 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object); |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1603 } | 1601 } |
1604 | 1602 |
1605 EmbeddedVector<char, 128> filename_; | 1603 EmbeddedVector<char, 128> filename_; |
1606 FILE* file_; | 1604 FILE* file_; |
1607 int scope_depth_; | 1605 int scope_depth_; |
1608 }; | 1606 }; |
1609 | 1607 |
1610 } } // namespace v8::internal | 1608 } } // namespace v8::internal |
1611 | 1609 |
1612 #endif // V8_ISOLATE_H_ | 1610 #endif // V8_ISOLATE_H_ |
OLD | NEW |