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