this repo has no description
at trunk 29 lines 952 B view raw
1// Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) 2#include "valuecell-builtins.h" 3 4#include "type-builtins.h" 5 6namespace py { 7 8static const BuiltinAttribute kCellAttributes[] = { 9 {ID(cell_contents), RawCell::kValueOffset}, 10}; 11 12static const BuiltinAttribute kValueCellAttributes[] = { 13 {ID(_valuecell__value), RawValueCell::kValueOffset, 14 AttributeFlags::kHidden}, 15 {ID(_valuecell__dependency_link), RawValueCell::kDependencyLinkOffset, 16 AttributeFlags::kHidden}, 17}; 18 19void initializeValueCellTypes(Thread* thread) { 20 addBuiltinType(thread, ID(cell), LayoutId::kCell, 21 /*superclass_id=*/LayoutId::kObject, kCellAttributes, 22 Cell::kSize, /*basetype=*/false); 23 24 addBuiltinType(thread, ID(valuecell), LayoutId::kValueCell, 25 /*superclass_id=*/LayoutId::kObject, kValueCellAttributes, 26 ValueCell::kSize, /*basetype=*/false); 27} 28 29} // namespace py