Skip to content

Commit

Permalink
Merge branch 'dev/checkpoint_and_restore' into main
Browse files Browse the repository at this point in the history
Signed-off-by: victoryang00 <[email protected]>
  • Loading branch information
victoryang00 committed May 22, 2024
1 parent 6cd3e89 commit 892d1ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 68 deletions.
16 changes: 7 additions & 9 deletions core/iwasm/compilation/aot_compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,20 +358,18 @@ aot_gen_commit_value(AOTCompFrame *frame, bool reset_dirty_bit,
}
if (local_idx < func_ctx->aot_func->func_type->param_count
+ func_ctx->aot_func->local_count) {
fprintf(stderr, "LLVMBuildLoad2 %d < %d\n", local_idx,
func_ctx->aot_func->local_count);
value =
LLVMBuildLoad2(comp_ctx->builder, llvm_value_type,
func_ctx->locals[local_idx], "commit_stack_load");
fprintf(stderr, "DONE LLVMBuildLoad2 %d\n", local_idx);
}
else {
if (!(*p)->value) {
fprintf(stderr, "value is null, %d %d\n", local_idx, n);
exit(-1);
}
value = LLVMBuildLoad2(comp_ctx->builder, llvm_value_type, (*p)->value,
"commit_stack_load");
// if (!(*p)->value) {
// fprintf(stderr, "value is null, %d %d\n", local_idx, n);
// exit(-1);
// }
// value = LLVMBuildLoad2(comp_ctx->builder, llvm_value_type,
// (*p)->value,
// "commit_stack_load");
}
if (value == NULL) {
fprintf(stderr, "gen value load error\n");
Expand Down
15 changes: 0 additions & 15 deletions core/iwasm/compilation/aot_emit_function.c
Original file line number Diff line number Diff line change
Expand Up @@ -1420,21 +1420,6 @@ aot_compile_op_call(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
/* Get param cell number */
param_cell_num = func_type->param_cell_num;

// #if (WASM_ENABLE_DUMP_CALL_STACK != 0) || (WASM_ENABLE_PERF_PROFILING !=
// 0)
// if (comp_ctx->enable_aux_stack_frame) {
// LLVMValueRef func_idx_const;

// if (!(func_idx_const = I32_CONST(func_idx))) {
// aot_set_last_error("llvm build const failed.");
// return false;
// }
// if (!call_aot_alloc_frame_func(comp_ctx, func_ctx,
// func_idx_const))
// return false;
// }
// #endif

/* Allocate memory for parameters.
* Parameters layout:
* - exec env
Expand Down
43 changes: 0 additions & 43 deletions core/iwasm/libraries/ckpt-restore/get_func_name.py

This file was deleted.

1 change: 0 additions & 1 deletion test-tools/addr2line/addr2line.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ def main():
if splitted is None:
print(f"{line}")
continue
index = index[2:]

_, offset, index = splitted
if args.no_addr:
Expand Down

0 comments on commit 892d1ca

Please sign in to comment.