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

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: rebased Created 4 years, 4 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
« no previous file with comments | « src/objects.h ('k') | test/mjsunit/es6/array-concat.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18968 matching lines...) Expand 10 before | Expand all | Expand 10 after
18979 // Might happen for the debug context. 18979 // Might happen for the debug context.
18980 if (!constructor->shared()->IsApiFunction()) return nullptr; 18980 if (!constructor->shared()->IsApiFunction()) return nullptr;
18981 18981
18982 Object* data_obj = 18982 Object* data_obj =
18983 constructor->shared()->get_api_func_data()->access_check_info(); 18983 constructor->shared()->get_api_func_data()->access_check_info();
18984 if (data_obj->IsUndefined(isolate)) return nullptr; 18984 if (data_obj->IsUndefined(isolate)) return nullptr;
18985 18985
18986 return AccessCheckInfo::cast(data_obj); 18986 return AccessCheckInfo::cast(data_obj);
18987 } 18987 }
18988 18988
18989 bool JSReceiver::HasProxyInPrototype(Isolate* isolate) {
18990 for (PrototypeIterator iter(isolate, this, kStartAtReceiver,
18991 PrototypeIterator::END_AT_NULL);
18992 !iter.IsAtEnd(); iter.AdvanceIgnoringProxies()) {
18993 if (iter.GetCurrent<Object>()->IsJSProxy()) return true;
18994 }
18995 return false;
18996 }
18997
18989 } // namespace internal 18998 } // namespace internal
18990 } // namespace v8 18999 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/mjsunit/es6/array-concat.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698