OLD | NEW |
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 Loading... |
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 |
OLD | NEW |