VM: make return_takes_param() a function
parent
28b5378196
commit
82658e184f
|
@ -2,6 +2,14 @@
|
||||||
|
|
||||||
namespace factor {
|
namespace factor {
|
||||||
|
|
||||||
|
bool return_takes_param_p() {
|
||||||
|
#if defined(FACTOR_X86) || defined(FACTOR_AMD64)
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
callback_heap::callback_heap(cell size, factor_vm* parent) {
|
callback_heap::callback_heap(cell size, factor_vm* parent) {
|
||||||
seg = new segment(size, true);
|
seg = new segment(size, true);
|
||||||
if (!seg)
|
if (!seg)
|
||||||
|
@ -18,14 +26,6 @@ callback_heap::~callback_heap() {
|
||||||
seg = NULL;
|
seg = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool callback_heap::return_takes_param_p() {
|
|
||||||
#if defined(FACTOR_X86) || defined(FACTOR_AMD64)
|
|
||||||
return true;
|
|
||||||
#else
|
|
||||||
return false;
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
instruction_operand callback_heap::callback_operand(code_block* stub,
|
instruction_operand callback_heap::callback_operand(code_block* stub,
|
||||||
cell index) {
|
cell index) {
|
||||||
tagged<array> code_template(parent->special_objects[CALLBACK_STUB]);
|
tagged<array> code_template(parent->special_objects[CALLBACK_STUB]);
|
||||||
|
|
|
@ -31,7 +31,6 @@ struct callback_heap {
|
||||||
callback_heap(cell size, factor_vm* parent);
|
callback_heap(cell size, factor_vm* parent);
|
||||||
~callback_heap();
|
~callback_heap();
|
||||||
|
|
||||||
bool return_takes_param_p();
|
|
||||||
instruction_operand callback_operand(code_block* stub, cell index);
|
instruction_operand callback_operand(code_block* stub, cell index);
|
||||||
void store_callback_operand(code_block* stub, cell index, cell value);
|
void store_callback_operand(code_block* stub, cell index, cell value);
|
||||||
void update(code_block* stub);
|
void update(code_block* stub);
|
||||||
|
|
Loading…
Reference in New Issue