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

Side by Side Diff: src/objects.cc

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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include "src/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 18925 matching lines...) Expand 10 before | Expand all | Expand 10 after
18936 // Might happen for the debug context. 18936 // Might happen for the debug context.
18937 if (!constructor->shared()->IsApiFunction()) return nullptr; 18937 if (!constructor->shared()->IsApiFunction()) return nullptr;
18938 18938
18939 Object* data_obj = 18939 Object* data_obj =
18940 constructor->shared()->get_api_func_data()->access_check_info(); 18940 constructor->shared()->get_api_func_data()->access_check_info();
18941 if (data_obj->IsUndefined(isolate)) return nullptr; 18941 if (data_obj->IsUndefined(isolate)) return nullptr;
18942 18942
18943 return AccessCheckInfo::cast(data_obj); 18943 return AccessCheckInfo::cast(data_obj);
18944 } 18944 }
18945 18945
18946 bool JSReceiver::HasProxyInPrototype(Isolate* isolate) {
18947 for (PrototypeIterator iter(isolate, this, kStartAtReceiver,
18948 PrototypeIterator::END_AT_NULL);
18949 !iter.IsAtEnd(); iter.AdvanceIgnoringProxies()) {
18950 if (iter.GetCurrent<Object>()->IsJSProxy()) return true;
18951 }
18952 return false;
18953 }
18954
18946 } // namespace internal 18955 } // namespace internal
18947 } // namespace v8 18956 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698