| 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 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 | 987 |
| 988 static const int kArrayProtectorValid = 1; | 988 static const int kArrayProtectorValid = 1; |
| 989 static const int kArrayProtectorInvalid = 0; | 989 static const int kArrayProtectorInvalid = 0; |
| 990 | 990 |
| 991 bool IsFastArrayConstructorPrototypeChainIntact(); | 991 bool IsFastArrayConstructorPrototypeChainIntact(); |
| 992 inline bool IsArraySpeciesLookupChainIntact(); | 992 inline bool IsArraySpeciesLookupChainIntact(); |
| 993 inline bool IsHasInstanceLookupChainIntact(); | 993 inline bool IsHasInstanceLookupChainIntact(); |
| 994 bool IsIsConcatSpreadableLookupChainIntact(); | 994 bool IsIsConcatSpreadableLookupChainIntact(); |
| 995 bool IsIsConcatSpreadableLookupChainIntact(JSReceiver* receiver); | 995 bool IsIsConcatSpreadableLookupChainIntact(JSReceiver* receiver); |
| 996 inline bool IsStringLengthOverflowIntact(); | 996 inline bool IsStringLengthOverflowIntact(); |
| 997 inline bool IsArrayIteratorLookupChainIntact(); |
| 997 | 998 |
| 998 // On intent to set an element in object, make sure that appropriate | 999 // On intent to set an element in object, make sure that appropriate |
| 999 // notifications occur if the set is on the elements of the array or | 1000 // notifications occur if the set is on the elements of the array or |
| 1000 // object prototype. Also ensure that changes to prototype chain between | 1001 // object prototype. Also ensure that changes to prototype chain between |
| 1001 // Array and Object fire notifications. | 1002 // Array and Object fire notifications. |
| 1002 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); | 1003 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); |
| 1003 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { | 1004 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { |
| 1004 UpdateArrayProtectorOnSetElement(object); | 1005 UpdateArrayProtectorOnSetElement(object); |
| 1005 } | 1006 } |
| 1006 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { | 1007 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { |
| 1007 UpdateArrayProtectorOnSetElement(object); | 1008 UpdateArrayProtectorOnSetElement(object); |
| 1008 } | 1009 } |
| 1009 void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) { | 1010 void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) { |
| 1010 UpdateArrayProtectorOnSetElement(object); | 1011 UpdateArrayProtectorOnSetElement(object); |
| 1011 } | 1012 } |
| 1012 void InvalidateArraySpeciesProtector(); | 1013 void InvalidateArraySpeciesProtector(); |
| 1013 void InvalidateHasInstanceProtector(); | 1014 void InvalidateHasInstanceProtector(); |
| 1014 void InvalidateIsConcatSpreadableProtector(); | 1015 void InvalidateIsConcatSpreadableProtector(); |
| 1015 void InvalidateStringLengthOverflowProtector(); | 1016 void InvalidateStringLengthOverflowProtector(); |
| 1017 void InvalidateArrayIteratorProtector(); |
| 1016 | 1018 |
| 1017 // Returns true if array is the initial array prototype in any native context. | 1019 // Returns true if array is the initial array prototype in any native context. |
| 1018 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); | 1020 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); |
| 1019 | 1021 |
| 1020 CallInterfaceDescriptorData* call_descriptor_data(int index); | 1022 CallInterfaceDescriptorData* call_descriptor_data(int index); |
| 1021 | 1023 |
| 1022 AccessCompilerData* access_compiler_data() { return access_compiler_data_; } | 1024 AccessCompilerData* access_compiler_data() { return access_compiler_data_; } |
| 1023 | 1025 |
| 1024 void IterateDeferredHandles(ObjectVisitor* visitor); | 1026 void IterateDeferredHandles(ObjectVisitor* visitor); |
| 1025 void LinkDeferredHandles(DeferredHandles* deferred_handles); | 1027 void LinkDeferredHandles(DeferredHandles* deferred_handles); |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 | 1682 |
| 1681 EmbeddedVector<char, 128> filename_; | 1683 EmbeddedVector<char, 128> filename_; |
| 1682 FILE* file_; | 1684 FILE* file_; |
| 1683 int scope_depth_; | 1685 int scope_depth_; |
| 1684 }; | 1686 }; |
| 1685 | 1687 |
| 1686 } // namespace internal | 1688 } // namespace internal |
| 1687 } // namespace v8 | 1689 } // namespace v8 |
| 1688 | 1690 |
| 1689 #endif // V8_ISOLATE_H_ | 1691 #endif // V8_ISOLATE_H_ |
| OLD | NEW |