1 // Copyright 2018 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef V8_OBJECTS_JS_PROXY_INL_H_ 6 #define V8_OBJECTS_JS_PROXY_INL_H_ 7 8 #include "src/objects/instance-type-inl.h" 9 #include "src/objects/js-objects-inl.h" 10 #include "src/objects/js-proxy.h" 11 #include "src/objects/objects-inl.h" // Needed for write barriers 12 13 // Has to be the last include (doesn't have include guards): 14 #include "src/objects/object-macros.h" 15 16 namespace v8 { 17 namespace internal { 18 19 #include "torque-generated/src/objects/js-proxy-tq-inl.inc" 20 TQ_OBJECT_CONSTRUCTORS_IMPL(JSProxy)21TQ_OBJECT_CONSTRUCTORS_IMPL(JSProxy) 22 23 bool JSProxy::IsRevoked() const { return !handler().IsJSReceiver(); } 24 25 } // namespace internal 26 } // namespace v8 27 28 #include "src/objects/object-macros-undef.h" 29 30 #endif // V8_OBJECTS_JS_PROXY_INL_H_ 31