// Copyright 2018 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_OBJECTS_API_CALLBACKS_H_ #define V8_OBJECTS_API_CALLBACKS_H_ #include "src/objects/struct.h" #include "torque-generated/bit-fields.h" // Has to be the last include (doesn't have include guards): #include "src/objects/object-macros.h" namespace v8 { namespace internal { class Undefined; class StructBodyDescriptor; #include "torque-generated/src/objects/api-callbacks-tq.inc" // An accessor must have a getter, but can have no setter. // // When setting a property, V8 searches accessors in prototypes. // If an accessor was found and it does not have a setter, // the request is ignored. // // If the accessor in the prototype has the READ_ONLY property attribute, then // a new value is added to the derived object when the property is set. // This shadows the accessor in the prototype. class AccessorInfo : public TorqueGeneratedAccessorInfo<AccessorInfo, HeapObject> { … }; class AccessCheckInfo : public TorqueGeneratedAccessCheckInfo<AccessCheckInfo, Struct> { … }; class InterceptorInfo : public TorqueGeneratedInterceptorInfo<InterceptorInfo, Struct> { … }; } // namespace internal } // namespace v8 #include "src/objects/object-macros-undef.h" #endif // V8_OBJECTS_API_CALLBACKS_H_