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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 date_cache_ = date_cache; | 989 date_cache_ = date_cache; |
990 } | 990 } |
991 | 991 |
992 Map* get_initial_js_array_map(ElementsKind kind); | 992 Map* get_initial_js_array_map(ElementsKind kind); |
993 | 993 |
994 static const int kProtectorValid = 1; | 994 static const int kProtectorValid = 1; |
995 static const int kProtectorInvalid = 0; | 995 static const int kProtectorInvalid = 0; |
996 | 996 |
997 bool IsFastArrayConstructorPrototypeChainIntact(); | 997 bool IsFastArrayConstructorPrototypeChainIntact(); |
998 inline bool IsArraySpeciesLookupChainIntact(); | 998 inline bool IsArraySpeciesLookupChainIntact(); |
999 inline bool IsHasInstanceLookupChainIntact(); | |
1000 bool IsIsConcatSpreadableLookupChainIntact(); | 999 bool IsIsConcatSpreadableLookupChainIntact(); |
1001 bool IsIsConcatSpreadableLookupChainIntact(JSReceiver* receiver); | 1000 bool IsIsConcatSpreadableLookupChainIntact(JSReceiver* receiver); |
1002 inline bool IsStringLengthOverflowIntact(); | 1001 inline bool IsStringLengthOverflowIntact(); |
1003 inline bool IsArrayIteratorLookupChainIntact(); | 1002 inline bool IsArrayIteratorLookupChainIntact(); |
1004 | 1003 |
1005 // Avoid deopt loops if fast Array Iterators migrate to slow Array Iterators. | 1004 // Avoid deopt loops if fast Array Iterators migrate to slow Array Iterators. |
1006 inline bool IsFastArrayIterationIntact(); | 1005 inline bool IsFastArrayIterationIntact(); |
1007 | 1006 |
1008 // Make sure we do check for neutered array buffers. | 1007 // Make sure we do check for neutered array buffers. |
1009 inline bool IsArrayBufferNeuteringIntact(); | 1008 inline bool IsArrayBufferNeuteringIntact(); |
1010 | 1009 |
1011 // On intent to set an element in object, make sure that appropriate | 1010 // On intent to set an element in object, make sure that appropriate |
1012 // notifications occur if the set is on the elements of the array or | 1011 // notifications occur if the set is on the elements of the array or |
1013 // object prototype. Also ensure that changes to prototype chain between | 1012 // object prototype. Also ensure that changes to prototype chain between |
1014 // Array and Object fire notifications. | 1013 // Array and Object fire notifications. |
1015 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); | 1014 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); |
1016 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { | 1015 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { |
1017 UpdateArrayProtectorOnSetElement(object); | 1016 UpdateArrayProtectorOnSetElement(object); |
1018 } | 1017 } |
1019 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { | 1018 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { |
1020 UpdateArrayProtectorOnSetElement(object); | 1019 UpdateArrayProtectorOnSetElement(object); |
1021 } | 1020 } |
1022 void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) { | 1021 void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) { |
1023 UpdateArrayProtectorOnSetElement(object); | 1022 UpdateArrayProtectorOnSetElement(object); |
1024 } | 1023 } |
1025 void InvalidateArraySpeciesProtector(); | 1024 void InvalidateArraySpeciesProtector(); |
1026 void InvalidateHasInstanceProtector(); | |
1027 void InvalidateIsConcatSpreadableProtector(); | 1025 void InvalidateIsConcatSpreadableProtector(); |
1028 void InvalidateStringLengthOverflowProtector(); | 1026 void InvalidateStringLengthOverflowProtector(); |
1029 void InvalidateArrayIteratorProtector(); | 1027 void InvalidateArrayIteratorProtector(); |
1030 void InvalidateArrayBufferNeuteringProtector(); | 1028 void InvalidateArrayBufferNeuteringProtector(); |
1031 | 1029 |
1032 // Returns true if array is the initial array prototype in any native context. | 1030 // Returns true if array is the initial array prototype in any native context. |
1033 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); | 1031 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); |
1034 | 1032 |
1035 V8_EXPORT_PRIVATE CallInterfaceDescriptorData* call_descriptor_data( | 1033 V8_EXPORT_PRIVATE CallInterfaceDescriptorData* call_descriptor_data( |
1036 int index); | 1034 int index); |
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1720 | 1718 |
1721 EmbeddedVector<char, 128> filename_; | 1719 EmbeddedVector<char, 128> filename_; |
1722 FILE* file_; | 1720 FILE* file_; |
1723 int scope_depth_; | 1721 int scope_depth_; |
1724 }; | 1722 }; |
1725 | 1723 |
1726 } // namespace internal | 1724 } // namespace internal |
1727 } // namespace v8 | 1725 } // namespace v8 |
1728 | 1726 |
1729 #endif // V8_ISOLATE_H_ | 1727 #endif // V8_ISOLATE_H_ |
OLD | NEW |