28 Star 110 Fork 86

hinus/pythonvm

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
stack.cpp 462 Bytes
一键复制 编辑 原始数据 按行查看 历史
hinus 提交于 2018-10-03 00:06 +08:00 . add gc
#include "util/stack.hpp"
#include "runtime/frameObject.hpp"
#include "memory/oopClosure.hpp"
template<>
void Stack<HiObject*>::oops_do(OopClosure* f) {
for (int i = 0; i < _len; i++) {
f->do_oop(&vector[i]);
}
}
template<typename T>
void Stack<T>::copy(const Stack<T>* stack) {
_size = stack->_size;
_len = stack->_len;
for (int i = 0; i < _size; i++) {
vector[i] = stack->vector[i];
}
}
template class Stack<Block>;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/hinus/pythonvm.git
git@gitee.com:hinus/pythonvm.git
hinus
pythonvm
pythonvm
master

搜索帮助