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 979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 static const int kArrayProtectorValid = 1; | 990 static const int kArrayProtectorValid = 1; |
991 static const int kArrayProtectorInvalid = 0; | 991 static const int kArrayProtectorInvalid = 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 | 999 |
| 1000 // Avoid deopt loops if fast Array Iterators migrate to slow Array Iterators. |
| 1001 inline bool IsFastArrayIterationIntact(); |
| 1002 |
1000 // On intent to set an element in object, make sure that appropriate | 1003 // On intent to set an element in object, make sure that appropriate |
1001 // notifications occur if the set is on the elements of the array or | 1004 // notifications occur if the set is on the elements of the array or |
1002 // object prototype. Also ensure that changes to prototype chain between | 1005 // object prototype. Also ensure that changes to prototype chain between |
1003 // Array and Object fire notifications. | 1006 // Array and Object fire notifications. |
1004 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); | 1007 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); |
1005 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { | 1008 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { |
1006 UpdateArrayProtectorOnSetElement(object); | 1009 UpdateArrayProtectorOnSetElement(object); |
1007 } | 1010 } |
1008 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { | 1011 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { |
1009 UpdateArrayProtectorOnSetElement(object); | 1012 UpdateArrayProtectorOnSetElement(object); |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 | 1676 |
1674 EmbeddedVector<char, 128> filename_; | 1677 EmbeddedVector<char, 128> filename_; |
1675 FILE* file_; | 1678 FILE* file_; |
1676 int scope_depth_; | 1679 int scope_depth_; |
1677 }; | 1680 }; |
1678 | 1681 |
1679 } // namespace internal | 1682 } // namespace internal |
1680 } // namespace v8 | 1683 } // namespace v8 |
1681 | 1684 |
1682 #endif // V8_ISOLATE_H_ | 1685 #endif // V8_ISOLATE_H_ |
OLD | NEW |