| 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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 | 980 |
| 981 void set_date_cache(DateCache* date_cache) { | 981 void set_date_cache(DateCache* date_cache) { |
| 982 if (date_cache != date_cache_) { | 982 if (date_cache != date_cache_) { |
| 983 delete date_cache_; | 983 delete date_cache_; |
| 984 } | 984 } |
| 985 date_cache_ = date_cache; | 985 date_cache_ = date_cache; |
| 986 } | 986 } |
| 987 | 987 |
| 988 Map* get_initial_js_array_map(ElementsKind kind); | 988 Map* get_initial_js_array_map(ElementsKind kind); |
| 989 | 989 |
| 990 static const int kArrayProtectorValid = 1; | 990 static const int kProtectorValid = 1; |
| 991 static const int kArrayProtectorInvalid = 0; | 991 static const int kProtectorInvalid = 0; |
| 992 | 992 |
| 993 bool IsFastArrayConstructorPrototypeChainIntact(); | 993 bool IsFastArrayConstructorPrototypeChainIntact(); |
| 994 inline bool IsArraySpeciesLookupChainIntact(); | 994 inline bool IsArraySpeciesLookupChainIntact(); |
| 995 inline bool IsHasInstanceLookupChainIntact(); | 995 inline bool IsHasInstanceLookupChainIntact(); |
| 996 bool IsIsConcatSpreadableLookupChainIntact(); | 996 bool IsIsConcatSpreadableLookupChainIntact(); |
| 997 bool IsIsConcatSpreadableLookupChainIntact(JSReceiver* receiver); | 997 bool IsIsConcatSpreadableLookupChainIntact(JSReceiver* receiver); |
| 998 inline bool IsStringLengthOverflowIntact(); | 998 inline bool IsStringLengthOverflowIntact(); |
| 999 inline bool IsArrayIteratorLookupChainIntact(); |
| 999 | 1000 |
| 1000 // Avoid deopt loops if fast Array Iterators migrate to slow Array Iterators. | 1001 // Avoid deopt loops if fast Array Iterators migrate to slow Array Iterators. |
| 1001 inline bool IsFastArrayIterationIntact(); | 1002 inline bool IsFastArrayIterationIntact(); |
| 1002 | 1003 |
| 1003 // On intent to set an element in object, make sure that appropriate | 1004 // On intent to set an element in object, make sure that appropriate |
| 1004 // notifications occur if the set is on the elements of the array or | 1005 // notifications occur if the set is on the elements of the array or |
| 1005 // object prototype. Also ensure that changes to prototype chain between | 1006 // object prototype. Also ensure that changes to prototype chain between |
| 1006 // Array and Object fire notifications. | 1007 // Array and Object fire notifications. |
| 1007 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); | 1008 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); |
| 1008 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { | 1009 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { |
| 1009 UpdateArrayProtectorOnSetElement(object); | 1010 UpdateArrayProtectorOnSetElement(object); |
| 1010 } | 1011 } |
| 1011 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { | 1012 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { |
| 1012 UpdateArrayProtectorOnSetElement(object); | 1013 UpdateArrayProtectorOnSetElement(object); |
| 1013 } | 1014 } |
| 1014 void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) { | 1015 void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) { |
| 1015 UpdateArrayProtectorOnSetElement(object); | 1016 UpdateArrayProtectorOnSetElement(object); |
| 1016 } | 1017 } |
| 1017 void InvalidateArraySpeciesProtector(); | 1018 void InvalidateArraySpeciesProtector(); |
| 1018 void InvalidateHasInstanceProtector(); | 1019 void InvalidateHasInstanceProtector(); |
| 1019 void InvalidateIsConcatSpreadableProtector(); | 1020 void InvalidateIsConcatSpreadableProtector(); |
| 1020 void InvalidateStringLengthOverflowProtector(); | 1021 void InvalidateStringLengthOverflowProtector(); |
| 1022 void InvalidateArrayIteratorProtector(); |
| 1021 | 1023 |
| 1022 // Returns true if array is the initial array prototype in any native context. | 1024 // Returns true if array is the initial array prototype in any native context. |
| 1023 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); | 1025 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); |
| 1024 | 1026 |
| 1025 CallInterfaceDescriptorData* call_descriptor_data(int index); | 1027 CallInterfaceDescriptorData* call_descriptor_data(int index); |
| 1026 | 1028 |
| 1027 AccessCompilerData* access_compiler_data() { return access_compiler_data_; } | 1029 AccessCompilerData* access_compiler_data() { return access_compiler_data_; } |
| 1028 | 1030 |
| 1029 void IterateDeferredHandles(ObjectVisitor* visitor); | 1031 void IterateDeferredHandles(ObjectVisitor* visitor); |
| 1030 void LinkDeferredHandles(DeferredHandles* deferred_handles); | 1032 void LinkDeferredHandles(DeferredHandles* deferred_handles); |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 | 1678 |
| 1677 EmbeddedVector<char, 128> filename_; | 1679 EmbeddedVector<char, 128> filename_; |
| 1678 FILE* file_; | 1680 FILE* file_; |
| 1679 int scope_depth_; | 1681 int scope_depth_; |
| 1680 }; | 1682 }; |
| 1681 | 1683 |
| 1682 } // namespace internal | 1684 } // namespace internal |
| 1683 } // namespace v8 | 1685 } // namespace v8 |
| 1684 | 1686 |
| 1685 #endif // V8_ISOLATE_H_ | 1687 #endif // V8_ISOLATE_H_ |
| OLD | NEW |