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

Side by Side Diff: src/isolate.h

Issue 2131383002: [builtins] take slow path in IsConcatSpreadable if proxy in prototype (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Refactor Created 4 years, 5 months 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 #include <set> 10 #include <set>
(...skipping 966 matching lines...) Expand 10 before | Expand all | Expand 10 after
977 977
978 Map* get_initial_js_array_map(ElementsKind kind); 978 Map* get_initial_js_array_map(ElementsKind kind);
979 979
980 static const int kArrayProtectorValid = 1; 980 static const int kArrayProtectorValid = 1;
981 static const int kArrayProtectorInvalid = 0; 981 static const int kArrayProtectorInvalid = 0;
982 982
983 bool IsFastArrayConstructorPrototypeChainIntact(); 983 bool IsFastArrayConstructorPrototypeChainIntact();
984 inline bool IsArraySpeciesLookupChainIntact(); 984 inline bool IsArraySpeciesLookupChainIntact();
985 inline bool IsHasInstanceLookupChainIntact(); 985 inline bool IsHasInstanceLookupChainIntact();
986 bool IsIsConcatSpreadableLookupChainIntact(); 986 bool IsIsConcatSpreadableLookupChainIntact();
987 bool IsIsConcatSpreadableLookupChainIntact(JSReceiver* receiver);
987 988
988 // On intent to set an element in object, make sure that appropriate 989 // On intent to set an element in object, make sure that appropriate
989 // notifications occur if the set is on the elements of the array or 990 // notifications occur if the set is on the elements of the array or
990 // object prototype. Also ensure that changes to prototype chain between 991 // object prototype. Also ensure that changes to prototype chain between
991 // Array and Object fire notifications. 992 // Array and Object fire notifications.
992 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object); 993 void UpdateArrayProtectorOnSetElement(Handle<JSObject> object);
993 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) { 994 void UpdateArrayProtectorOnSetLength(Handle<JSObject> object) {
994 UpdateArrayProtectorOnSetElement(object); 995 UpdateArrayProtectorOnSetElement(object);
995 } 996 }
996 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) { 997 void UpdateArrayProtectorOnSetPrototype(Handle<JSObject> object) {
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 1643
1643 EmbeddedVector<char, 128> filename_; 1644 EmbeddedVector<char, 128> filename_;
1644 FILE* file_; 1645 FILE* file_;
1645 int scope_depth_; 1646 int scope_depth_;
1646 }; 1647 };
1647 1648
1648 } // namespace internal 1649 } // namespace internal
1649 } // namespace v8 1650 } // namespace v8
1650 1651
1651 #endif // V8_ISOLATE_H_ 1652 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/isolate.cc » ('j') | test/mjsunit/es6/array-concat.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698