codegen/memory: Make codegen buffers 64k in size instead of 4k
This commit is contained in:
parent
34b161a5c4
commit
6c30b8d2c9
|
@ -18,7 +18,7 @@ Codegen.prototype.reset = function()
|
|||
};
|
||||
|
||||
Codegen.OUTPUT_OFFSET = 0x1000;
|
||||
Codegen.STR_INPUT_OFFSET = 0x4000;
|
||||
Codegen.STR_INPUT_OFFSET = 0x31000;
|
||||
|
||||
Codegen.prototype.str_input = function(str)
|
||||
{
|
||||
|
|
|
@ -12,12 +12,12 @@
|
|||
#include "wasm_opcodes.h"
|
||||
#include "wasm_util.h"
|
||||
|
||||
static Buffer op = { .start = codegen_buffer_op, .ptr = codegen_buffer_op, .len = 0x1000 };
|
||||
static Buffer cs = { .start = codegen_buffer_cs, .ptr = codegen_buffer_cs, .len = 0x1000 };
|
||||
static Buffer op = { .start = codegen_buffer_op, .ptr = codegen_buffer_op, .len = 0x10000 };
|
||||
static Buffer cs = { .start = codegen_buffer_cs, .ptr = codegen_buffer_cs, .len = 0x10000 };
|
||||
Buffer instruction_body = {
|
||||
.start = codegen_buffer_instruction_body,
|
||||
.ptr = codegen_buffer_instruction_body,
|
||||
.len = 0x1000,
|
||||
.len = 0x10000,
|
||||
};
|
||||
|
||||
static uint8_t* op_ptr_reset_location;
|
||||
|
|
|
@ -86,10 +86,10 @@ static union reg64* const reg_mmx = (union reg64* const) 1064; // length 64
|
|||
|
||||
// gap
|
||||
|
||||
static uint8_t* const codegen_buffer_op = (uint8_t* const) 0x1000; // length 0x1000
|
||||
static uint8_t* const codegen_buffer_cs = (uint8_t* const) 0x2000; // length 0x1000
|
||||
static uint8_t* const codegen_buffer_instruction_body = (uint8_t* const) 0x3000; // length 0x1000
|
||||
static uint8_t* const codegen_string_input = (uint8_t* const) 0x4000; // length 32
|
||||
static uint8_t* const codegen_buffer_op = (uint8_t* const) 0x1000; // length 0x10000
|
||||
static uint8_t* const codegen_buffer_cs = (uint8_t* const) 0x11000; // length 0x10000
|
||||
static uint8_t* const codegen_buffer_instruction_body = (uint8_t* const) 0x21000; // length 0x10000
|
||||
static uint8_t* const codegen_string_input = (uint8_t* const) 0x31000; // length 32
|
||||
|
||||
// gap
|
||||
|
||||
|
|
Loading…
Reference in a new issue