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 "include/v8-debug.h" | 8 #include "include/v8-debug.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 void PrintStack(StringStream* accumulator); | 690 void PrintStack(StringStream* accumulator); |
691 void PrintStack(FILE* out); | 691 void PrintStack(FILE* out); |
692 Handle<String> StackTraceString(); | 692 Handle<String> StackTraceString(); |
693 NO_INLINE(void PushStackTraceAndDie(unsigned int magic, | 693 NO_INLINE(void PushStackTraceAndDie(unsigned int magic, |
694 Object* object, | 694 Object* object, |
695 Map* map, | 695 Map* map, |
696 unsigned int magic2)); | 696 unsigned int magic2)); |
697 Handle<JSArray> CaptureCurrentStackTrace( | 697 Handle<JSArray> CaptureCurrentStackTrace( |
698 int frame_limit, | 698 int frame_limit, |
699 StackTrace::StackTraceOptions options); | 699 StackTrace::StackTraceOptions options); |
700 | 700 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, |
701 Handle<JSArray> CaptureSimpleStackTrace(Handle<JSObject> error_object, | 701 Handle<Object> caller); |
702 Handle<Object> caller, | |
703 int limit); | |
704 void CaptureAndSetDetailedStackTrace(Handle<JSObject> error_object); | 702 void CaptureAndSetDetailedStackTrace(Handle<JSObject> error_object); |
| 703 void CaptureAndSetSimpleStackTrace(Handle<JSObject> error_object, |
| 704 Handle<Object> caller); |
705 | 705 |
706 // Returns if the top context may access the given global object. If | 706 // Returns if the top context may access the given global object. If |
707 // the result is false, the pending exception is guaranteed to be | 707 // the result is false, the pending exception is guaranteed to be |
708 // set. | 708 // set. |
709 | 709 |
710 bool MayNamedAccess(Handle<JSObject> receiver, | 710 bool MayNamedAccess(Handle<JSObject> receiver, |
711 Handle<Object> key, | 711 Handle<Object> key, |
712 v8::AccessType type); | 712 v8::AccessType type); |
713 bool MayIndexedAccess(Handle<JSObject> receiver, | 713 bool MayIndexedAccess(Handle<JSObject> receiver, |
714 uint32_t index, | 714 uint32_t index, |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1503 } | 1503 } |
1504 | 1504 |
1505 EmbeddedVector<char, 128> filename_; | 1505 EmbeddedVector<char, 128> filename_; |
1506 FILE* file_; | 1506 FILE* file_; |
1507 int scope_depth_; | 1507 int scope_depth_; |
1508 }; | 1508 }; |
1509 | 1509 |
1510 } } // namespace v8::internal | 1510 } } // namespace v8::internal |
1511 | 1511 |
1512 #endif // V8_ISOLATE_H_ | 1512 #endif // V8_ISOLATE_H_ |
OLD | NEW |