1// Copyright 2019 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#include 'src/objects/property-descriptor-object.h' 6 7bitfield struct PropertyDescriptorObjectFlags extends uint31 { 8 is_enumerable: bool: 1 bit; 9 has_enumerable: bool: 1 bit; 10 is_configurable: bool: 1 bit; 11 has_configurable: bool: 1 bit; 12 is_writable: bool: 1 bit; 13 has_writable: bool: 1 bit; 14 has_value: bool: 1 bit; 15 has_get: bool: 1 bit; 16 has_set: bool: 1 bit; 17} 18 19@generateCppClass 20@generatePrint 21extern class PropertyDescriptorObject extends Struct { 22 flags: SmiTagged<PropertyDescriptorObjectFlags>; 23 value: JSAny|TheHole; 24 get: JSAny|TheHole; 25 set: JSAny|TheHole; 26} 27