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

Side by Side Diff: src/isolate.h

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

Powered by Google App Engine
This is Rietveld 408576698