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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
738 void CaptureAndSetSimpleStackTrace(Handle<JSObject> error_object, | 738 void CaptureAndSetSimpleStackTrace(Handle<JSObject> error_object, |
739 Handle<Object> caller); | 739 Handle<Object> caller); |
740 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object); | 740 Handle<JSArray> GetDetailedStackTrace(Handle<JSObject> error_object); |
741 Handle<JSArray> GetDetailedFromSimpleStackTrace( | 741 Handle<JSArray> GetDetailedFromSimpleStackTrace( |
742 Handle<JSObject> error_object); | 742 Handle<JSObject> error_object); |
743 | 743 |
744 // Returns if the top context may access the given global object. If | 744 // Returns if the top context may access the given global object. If |
745 // the result is false, the pending exception is guaranteed to be | 745 // the result is false, the pending exception is guaranteed to be |
746 // set. | 746 // set. |
747 | 747 |
748 bool MayNamedAccess(Handle<JSObject> receiver, | 748 bool MayAccess(Handle<JSObject> receiver); |
749 Handle<Object> key, | |
750 v8::AccessType type); | |
751 bool MayIndexedAccess(Handle<JSObject> receiver, | |
752 uint32_t index, | |
753 v8::AccessType type); | |
754 bool IsInternallyUsedPropertyName(Handle<Object> name); | 749 bool IsInternallyUsedPropertyName(Handle<Object> name); |
755 bool IsInternallyUsedPropertyName(Object* name); | 750 bool IsInternallyUsedPropertyName(Object* name); |
756 | 751 |
757 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); | 752 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); |
758 void ReportFailedAccessCheck(Handle<JSObject> receiver, v8::AccessType type); | 753 void ReportFailedAccessCheck(Handle<JSObject> receiver); |
759 | 754 |
760 // Exception throwing support. The caller should use the result | 755 // Exception throwing support. The caller should use the result |
761 // of Throw() as its return value. | 756 // of Throw() as its return value. |
762 Object* Throw(Object* exception, MessageLocation* location = NULL); | 757 Object* Throw(Object* exception, MessageLocation* location = NULL); |
763 | 758 |
764 template <typename T> | 759 template <typename T> |
765 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, | 760 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, |
766 MessageLocation* location = NULL) { | 761 MessageLocation* location = NULL) { |
767 Throw(*exception, location); | 762 Throw(*exception, location); |
768 return MaybeHandle<T>(); | 763 return MaybeHandle<T>(); |
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 } | 1570 } |
1576 | 1571 |
1577 EmbeddedVector<char, 128> filename_; | 1572 EmbeddedVector<char, 128> filename_; |
1578 FILE* file_; | 1573 FILE* file_; |
1579 int scope_depth_; | 1574 int scope_depth_; |
1580 }; | 1575 }; |
1581 | 1576 |
1582 } } // namespace v8::internal | 1577 } } // namespace v8::internal |
1583 | 1578 |
1584 #endif // V8_ISOLATE_H_ | 1579 #endif // V8_ISOLATE_H_ |
OLD | NEW |