Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions core/iwasm/interpreter/wasm_interp_fast.c
Original file line number Diff line number Diff line change
Expand Up @@ -999,9 +999,9 @@ copy_stack_values(WASMModuleInstance *module, uint32 *frame_lp, uint32 arity,
} \
} \
else if (cells[0] == 2) { \
PUT_I64_TO_ADDR( \
frame_lp + dst_offsets[0], \
GET_I64_FROM_ADDR(frame_lp + src_offsets[0])); \
int64 tmp_i64 = \
GET_I64_FROM_ADDR(frame_lp + src_offsets[0]); \
PUT_I64_TO_ADDR(frame_lp + dst_offsets[0], tmp_i64); \
/* Ignore constants because they are not reference */ \
if (src_offsets[0] >= 0) { \
CLEAR_FRAME_REF((unsigned)src_offsets[0]); \
Expand All @@ -1011,9 +1011,9 @@ copy_stack_values(WASMModuleInstance *module, uint32 *frame_lp, uint32 arity,
} \
} \
else if (cells[0] == 4) { \
PUT_V128_TO_ADDR( \
frame_lp + dst_offsets[0], \
GET_V128_FROM_ADDR(frame_lp + src_offsets[0])); \
V128 tmp_v128 = \
GET_V128_FROM_ADDR(frame_lp + src_offsets[0]); \
PUT_V128_TO_ADDR(frame_lp + dst_offsets[0], tmp_v128); \
/* Ignore constants because they are not reference */ \
if (src_offsets[0] >= 0) { \
CLEAR_FRAME_REF((unsigned)src_offsets[0]); \
Expand Down Expand Up @@ -1062,14 +1062,14 @@ copy_stack_values(WASMModuleInstance *module, uint32 *frame_lp, uint32 arity,
if (cells[0] == 1) \
frame_lp[dst_offsets[0]] = frame_lp[src_offsets[0]]; \
else if (cells[0] == 2) { \
PUT_I64_TO_ADDR( \
frame_lp + dst_offsets[0], \
GET_I64_FROM_ADDR(frame_lp + src_offsets[0])); \
int64 tmp_i64 = \
GET_I64_FROM_ADDR(frame_lp + src_offsets[0]); \
PUT_I64_TO_ADDR(frame_lp + dst_offsets[0], tmp_i64); \
} \
else if (cells[0] == 4) { \
PUT_V128_TO_ADDR( \
frame_lp + dst_offsets[0], \
GET_V128_FROM_ADDR(frame_lp + src_offsets[0])); \
V128 tmp_v128 = \
GET_V128_FROM_ADDR(frame_lp + src_offsets[0]); \
PUT_V128_TO_ADDR(frame_lp + dst_offsets[0], tmp_v128); \
} \
} \
else { \
Expand Down
Loading