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 <memory> | 8 #include <memory> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 | 717 |
718 // Returns if the given context may access the given global object. If | 718 // Returns if the given context may access the given global object. If |
719 // the result is false, the pending exception is guaranteed to be | 719 // the result is false, the pending exception is guaranteed to be |
720 // set. | 720 // set. |
721 bool MayAccess(Handle<Context> accessing_context, Handle<JSObject> receiver); | 721 bool MayAccess(Handle<Context> accessing_context, Handle<JSObject> receiver); |
722 | 722 |
723 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); | 723 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); |
724 void ReportFailedAccessCheck(Handle<JSObject> receiver); | 724 void ReportFailedAccessCheck(Handle<JSObject> receiver); |
725 | 725 |
726 // Exception throwing support. The caller should use the result | 726 // Exception throwing support. The caller should use the result |
727 // of Throw() as its return vaue. | 727 // of Throw() as its return value. |
728 Object* Throw(Object* exception, MessageLocation* location = NULL); | 728 Object* Throw(Object* exception, MessageLocation* location = NULL); |
729 Object* ThrowIllegalOperation(); | 729 Object* ThrowIllegalOperation(); |
730 | 730 |
731 template <typename T> | 731 template <typename T> |
732 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, | 732 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, |
733 MessageLocation* location = NULL) { | 733 MessageLocation* location = NULL) { |
734 Throw(*exception, location); | 734 Throw(*exception, location); |
735 return MaybeHandle<T>(); | 735 return MaybeHandle<T>(); |
736 } | 736 } |
737 | 737 |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 | 1678 |
1679 EmbeddedVector<char, 128> filename_; | 1679 EmbeddedVector<char, 128> filename_; |
1680 FILE* file_; | 1680 FILE* file_; |
1681 int scope_depth_; | 1681 int scope_depth_; |
1682 }; | 1682 }; |
1683 | 1683 |
1684 } // namespace internal | 1684 } // namespace internal |
1685 } // namespace v8 | 1685 } // namespace v8 |
1686 | 1686 |
1687 #endif // V8_ISOLATE_H_ | 1687 #endif // V8_ISOLATE_H_ |
OLD | NEW |