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