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 19extern class PropertyDescriptorObject extends Struct { 20 flags: SmiTagged<PropertyDescriptorObjectFlags>; 21 value: JSAny|TheHole; 22 get: JSAny|TheHole; 23 set: JSAny|TheHole; 24} 25