代码拉取完成,页面将自动刷新
同步操作将从 hinus/pythonvm 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#ifndef FRAME_OBJECT_HPP
#define FRAME_OBJECT_HPP
#include "code/codeObject.hpp"
#include "util/map.hpp"
#include "util/arrayList.hpp"
class FunctionObject;
class HiList;
class Block {
public:
unsigned char _type;
unsigned int _target;
int _level;
Block() {
_type = 0;
_target = 0;
_level = 0;
}
Block(unsigned char b_type,
unsigned int b_target,
int b_level):
_type(b_type),
_target(b_target),
_level(b_level) {
}
Block(const Block& b) {
_type = b._type;
_target = b._target;
_level = b._level;
}
};
class FrameObject {
public:
FrameObject(CodeObject* codes);
FrameObject(FunctionObject* func, ObjList args, int op_arg);
~FrameObject() {};
HiList* _stack;
ArrayList<Block*>* _loop_stack;
ArrayList<HiObject*>* _consts;
ArrayList<HiObject*>* _names;
HiDict* _locals;
HiDict* _globals;
HiList* _fast_locals;
HiList* _closure;
CodeObject* _codes;
FrameObject* _sender;
int _pc;
bool _entry_frame;
public:
void set_sender(FrameObject* x) { _sender = x; }
FrameObject* sender() { return _sender;}
void set_pc(int x) { _pc = x; }
int get_pc() { return _pc; }
void set_entry_frame(bool x) { _entry_frame = x; }
bool is_entry_frame() { return _entry_frame; }
bool is_first_frame() { return _sender == NULL; }
HiList* stack() { return _stack; }
ArrayList<Block*>* loop_stack() { return _loop_stack; }
ArrayList<HiObject*>* consts() { return _consts; }
ArrayList<HiObject*>* names() { return _names; }
HiDict* locals() { return _locals; }
HiDict* globals() { return _globals; }
HiList* fast_locals() { return _fast_locals; }
HiList* closure() { return _closure; }
HiObject* get_cell_from_parameter(int i );
HiString* file_name();
HiString* func_name();
int lineno();
bool has_more_codes();
unsigned char get_op_code();
int get_op_arg();
void oops_do(OopClosure* f);
};
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。