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 <set> | 9 #include <set> |
10 | 10 |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, | 672 Handle<Object> CaptureSimpleStackTrace(Handle<JSObject> error_object, |
673 Handle<Object> caller); | 673 Handle<Object> caller); |
674 MaybeHandle<JSObject> CaptureAndSetDetailedStackTrace( | 674 MaybeHandle<JSObject> CaptureAndSetDetailedStackTrace( |
675 Handle<JSObject> error_object); | 675 Handle<JSObject> error_object); |
676 MaybeHandle<JSObject> CaptureAndSetSimpleStackTrace( | 676 MaybeHandle<JSObject> CaptureAndSetSimpleStackTrace( |
677 Handle<JSObject> error_object, Handle<Object> caller); | 677 Handle<JSObject> error_object, Handle<Object> caller); |
678 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object); | 678 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object); |
679 Handle<JSArray> GetDetailedFromSimpleStackTrace( | 679 Handle<JSArray> GetDetailedFromSimpleStackTrace( |
680 Handle<JSObject> error_object); | 680 Handle<JSObject> error_object); |
681 | 681 |
682 // Returns if the top context may access the given global object. If | 682 // Returns if the given context may access the given global object. If |
683 // the result is false, the pending exception is guaranteed to be | 683 // the result is false, the pending exception is guaranteed to be |
684 // set. | 684 // set. |
| 685 bool MayAccess(Handle<Context> accessing_context, Handle<JSObject> receiver); |
685 | 686 |
686 bool MayAccess(Handle<JSObject> receiver); | |
687 bool IsInternallyUsedPropertyName(Handle<Object> name); | 687 bool IsInternallyUsedPropertyName(Handle<Object> name); |
688 bool IsInternallyUsedPropertyName(Object* name); | 688 bool IsInternallyUsedPropertyName(Object* name); |
689 | 689 |
690 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); | 690 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); |
691 void ReportFailedAccessCheck(Handle<JSObject> receiver); | 691 void ReportFailedAccessCheck(Handle<JSObject> receiver); |
692 | 692 |
693 // Exception throwing support. The caller should use the result | 693 // Exception throwing support. The caller should use the result |
694 // of Throw() as its return value. | 694 // of Throw() as its return value. |
695 Object* Throw(Object* exception, MessageLocation* location = NULL); | 695 Object* Throw(Object* exception, MessageLocation* location = NULL); |
696 Object* ThrowIllegalOperation(); | 696 Object* ThrowIllegalOperation(); |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1553 | 1553 |
1554 EmbeddedVector<char, 128> filename_; | 1554 EmbeddedVector<char, 128> filename_; |
1555 FILE* file_; | 1555 FILE* file_; |
1556 int scope_depth_; | 1556 int scope_depth_; |
1557 }; | 1557 }; |
1558 | 1558 |
1559 } // namespace internal | 1559 } // namespace internal |
1560 } // namespace v8 | 1560 } // namespace v8 |
1561 | 1561 |
1562 #endif // V8_ISOLATE_H_ | 1562 #endif // V8_ISOLATE_H_ |
OLD | NEW |