| 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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 997 |
| 998 // Avoid deopt loops if fast Array Iterators migrate to slow Array Iterators. |
| 999 inline bool CanInlineArrayIterator(); |
| 1000 |
| 998 // On intent to set an element in object, make sure that appropriate | 1001 // 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 | 1002 // notifications occur if the set is on the elements of the array or |
| 1000 // object prototype. Also ensure that changes to prototype chain between | 1003 // object prototype. Also ensure that changes to prototype chain between |
| 1001 // Array and Object fire notifications. | 1004 // Array and Object fire notifications. |
| 1002 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); | 1005 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); |
| 1003 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { | 1006 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { |
| 1004 UpdateArrayProtectorOnSetElement(object); | 1007 UpdateArrayProtectorOnSetElement(object); |
| 1005 } | 1008 } |
| 1006 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { | 1009 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { |
| 1007 UpdateArrayProtectorOnSetElement(object); | 1010 UpdateArrayProtectorOnSetElement(object); |
| 1008 } | 1011 } |
| 1009 void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) { | 1012 void UpdateArrayProtectorOnNormalizeElements(Handle<JSObject> object) { |
| 1010 UpdateArrayProtectorOnSetElement(object); | 1013 UpdateArrayProtectorOnSetElement(object); |
| 1011 } | 1014 } |
| 1012 void InvalidateArraySpeciesProtector(); | 1015 void InvalidateArraySpeciesProtector(); |
| 1013 void InvalidateHasInstanceProtector(); | 1016 void InvalidateHasInstanceProtector(); |
| 1014 void InvalidateIsConcatSpreadableProtector(); | 1017 void InvalidateIsConcatSpreadableProtector(); |
| 1015 void InvalidateStringLengthOverflowProtector(); | 1018 void InvalidateStringLengthOverflowProtector(); |
| 1019 void InvalidateArrayIteratorProtector(); |
| 1016 | 1020 |
| 1017 // Returns true if array is the initial array prototype in any native context. | 1021 // Returns true if array is the initial array prototype in any native context. |
| 1018 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); | 1022 bool IsAnyInitialArrayPrototype(Handle<JSArray> array); |
| 1019 | 1023 |
| 1020 CallInterfaceDescriptorData* call_descriptor_data(int index); | 1024 CallInterfaceDescriptorData* call_descriptor_data(int index); |
| 1021 | 1025 |
| 1022 AccessCompilerData* access_compiler_data() { return access_compiler_data_; } | 1026 AccessCompilerData* access_compiler_data() { return access_compiler_data_; } |
| 1023 | 1027 |
| 1024 void IterateDeferredHandles(ObjectVisitor* visitor); | 1028 void IterateDeferredHandles(ObjectVisitor* visitor); |
| 1025 void LinkDeferredHandles(DeferredHandles* deferred_handles); | 1029 void LinkDeferredHandles(DeferredHandles* deferred_handles); |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1671 | 1675 |
| 1672 EmbeddedVector<char, 128> filename_; | 1676 EmbeddedVector<char, 128> filename_; |
| 1673 FILE* file_; | 1677 FILE* file_; |
| 1674 int scope_depth_; | 1678 int scope_depth_; |
| 1675 }; | 1679 }; |
| 1676 | 1680 |
| 1677 } // namespace internal | 1681 } // namespace internal |
| 1678 } // namespace v8 | 1682 } // namespace v8 |
| 1679 | 1683 |
| 1680 #endif // V8_ISOLATE_H_ | 1684 #endif // V8_ISOLATE_H_ |
| OLD | NEW |