this repo has no description
at trunk 25 lines 914 B view raw
1// Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) 2#include "layout-builtins.h" 3 4#include "builtins.h" 5#include "type-builtins.h" 6 7namespace py { 8 9static const BuiltinAttribute kLayoutAttributes[] = { 10 {ID(_layout__described_type), RawLayout::kDescribedTypeOffset}, 11 {ID(_layout__in_object_attributes), RawLayout::kInObjectAttributesOffset}, 12 {ID(_layout__overflow_attributes), RawLayout::kOverflowAttributesOffset}, 13 {ID(_layout__additions), RawLayout::kAdditionsOffset}, 14 {ID(_layout__deletions), RawLayout::kDeletionsOffset}, 15 {ID(_layout__num_in_object_attributes), 16 RawLayout::kNumInObjectAttributesOffset}, 17}; 18 19void initializeLayoutType(Thread* thread) { 20 addBuiltinType(thread, ID(layout), LayoutId::kLayout, 21 /*superclass_id=*/LayoutId::kObject, kLayoutAttributes, 22 Layout::kSize, /*basetype=*/false); 23} 24 25} // namespace py