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 18925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |