| 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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 705 private: | 705 private: |
| 706 Isolate* isolate_; | 706 Isolate* isolate_; |
| 707 Handle<Object> pending_exception_; | 707 Handle<Object> pending_exception_; |
| 708 }; | 708 }; |
| 709 | 709 |
| 710 void SetCaptureStackTraceForUncaughtExceptions( | 710 void SetCaptureStackTraceForUncaughtExceptions( |
| 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 void PrintCurrentStackTrace(FILE* out); | 716 void PrintCurrentStackTrace(FILE* out); |
| 716 void PrintStack(StringStream* accumulator); | 717 void PrintStack(StringStream* accumulator, |
| 717 void PrintStack(FILE* out); | 718 PrintStackMode mode = kPrintStackVerbose); |
| 719 void PrintStack(FILE* out, PrintStackMode mode = kPrintStackVerbose); |
| 718 Handle<String> StackTraceString(); | 720 Handle<String> StackTraceString(); |
| 719 NO_INLINE(void PushStackTraceAndDie(unsigned int magic, | 721 NO_INLINE(void PushStackTraceAndDie(unsigned int magic, |
| 720 Object* object, | 722 Object* object, |
| 721 Map* map, | 723 Map* map, |
| 722 unsigned int magic2)); | 724 unsigned int magic2)); |
| 723 Handle<JSArray> CaptureCurrentStackTrace( | 725 Handle<JSArray> CaptureCurrentStackTrace( |
| 724 int frame_limit, | 726 int frame_limit, |
| 725 StackTrace::StackTraceOptions options); | 727 StackTrace::StackTraceOptions options); |
| 726 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, | 728 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, |
| 727 Handle<Object> caller); | 729 Handle<Object> caller); |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1597 } | 1599 } |
| 1598 | 1600 |
| 1599 EmbeddedVector<char, 128> filename_; | 1601 EmbeddedVector<char, 128> filename_; |
| 1600 FILE* file_; | 1602 FILE* file_; |
| 1601 int scope_depth_; | 1603 int scope_depth_; |
| 1602 }; | 1604 }; |
| 1603 | 1605 |
| 1604 } } // namespace v8::internal | 1606 } } // namespace v8::internal |
| 1605 | 1607 |
| 1606 #endif // V8_ISOLATE_H_ | 1608 #endif // V8_ISOLATE_H_ |
| OLD | NEW |