this repo has no description
1// Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com)
2#include "frame-proxy-builtins.h"
3
4#include "builtins.h"
5#include "type-builtins.h"
6
7namespace py {
8
9static const BuiltinAttribute kFrameProxyAttributes[] = {
10 {ID(f_back), RawFrameProxy::kBackOffset, AttributeFlags::kReadOnly},
11 {ID(_function), RawFrameProxy::kFunctionOffset, AttributeFlags::kReadOnly},
12 {ID(f_lasti), RawFrameProxy::kLastiOffset, AttributeFlags::kReadOnly},
13 {ID(f_locals), RawFrameProxy::kLocalsOffset, AttributeFlags::kReadOnly},
14};
15
16void initializeFrameProxyType(Thread* thread) {
17 addBuiltinType(thread, ID(frame), LayoutId::kFrameProxy,
18 /*superclass_id=*/LayoutId::kObject, kFrameProxyAttributes,
19 FrameProxy::kSize, /*basetype=*/false);
20}
21
22} // namespace py