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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 // Returns if the top context may access the given global object. If | 755 // Returns if the top context may access the given global object. If |
756 // the result is false, the pending exception is guaranteed to be | 756 // the result is false, the pending exception is guaranteed to be |
757 // set. | 757 // set. |
758 | 758 |
759 bool MayNamedAccess(Handle<JSObject> receiver, | 759 bool MayNamedAccess(Handle<JSObject> receiver, |
760 Handle<Object> key, | 760 Handle<Object> key, |
761 v8::AccessType type); | 761 v8::AccessType type); |
762 bool MayIndexedAccess(Handle<JSObject> receiver, | 762 bool MayIndexedAccess(Handle<JSObject> receiver, |
763 uint32_t index, | 763 uint32_t index, |
764 v8::AccessType type); | 764 v8::AccessType type); |
| 765 bool IsInternallyUsedPropertyName(Handle<Object> name); |
| 766 bool IsInternallyUsedPropertyName(Object* name); |
765 | 767 |
766 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); | 768 void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); |
767 void ReportFailedAccessCheck(Handle<JSObject> receiver, v8::AccessType type); | 769 void ReportFailedAccessCheck(Handle<JSObject> receiver, v8::AccessType type); |
768 | 770 |
769 // Exception throwing support. The caller should use the result | 771 // Exception throwing support. The caller should use the result |
770 // of Throw() as its return value. | 772 // of Throw() as its return value. |
771 Object* Throw(Object* exception, MessageLocation* location = NULL); | 773 Object* Throw(Object* exception, MessageLocation* location = NULL); |
772 | 774 |
773 template <typename T> | 775 template <typename T> |
774 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, | 776 MUST_USE_RESULT MaybeHandle<T> Throw(Handle<Object> exception, |
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1552 } | 1554 } |
1553 | 1555 |
1554 EmbeddedVector<char, 128> filename_; | 1556 EmbeddedVector<char, 128> filename_; |
1555 FILE* file_; | 1557 FILE* file_; |
1556 int scope_depth_; | 1558 int scope_depth_; |
1557 }; | 1559 }; |
1558 | 1560 |
1559 } } // namespace v8::internal | 1561 } } // namespace v8::internal |
1560 | 1562 |
1561 #endif // V8_ISOLATE_H_ | 1563 #endif // V8_ISOLATE_H_ |
OLD | NEW |