Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: src/isolate.h

Issue 2484003002: [builtins] implement JSBuiltinReducer for ArrayIteratorNext() (Closed)
Patch Set: CheckIf() for ArrayBufferWasNeutered() rather than a branch, which hopefully can be eliminated, and… Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1680 1684
1681 EmbeddedVector<char, 128> filename_; 1685 EmbeddedVector<char, 128> filename_;
1682 FILE* file_; 1686 FILE* file_;
1683 int scope_depth_; 1687 int scope_depth_;
1684 }; 1688 };
1685 1689
1686 } // namespace internal 1690 } // namespace internal
1687 } // namespace v8 1691 } // namespace v8
1688 1692
1689 #endif // V8_ISOLATE_H_ 1693 #endif // V8_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698