2nd draft of merging with develop branch

parent 93f871bd
......@@ -3880,7 +3880,8 @@ pub fn emit_sym_table(vm: &VM){
file_path_st.push(format!("{}", AOT_EMIT_SYM_TABLE_FILE));
let mut file_st = match File::create(file_path_st.as_path()) {
Err(why) => panic!("couldn't create SYM TABLE file {}: {}", file_path_st.to_str().unwrap(), why),
Err(why) => panic!("couldn't create SYM TABLE file {}: {}",
file_path_st.to_str().unwrap(), why),
Ok(file) => file
};
......@@ -3927,7 +3928,8 @@ pub fn emit_sym_table(vm: &VM){
// sym_vec.push((*symbol).clone());
// },
// // can't reach this state
// _ => panic!("Sym_Table_callsite: expecting Relocatable location, found {}", callsite)
// _ => panic!("Sym_Table_callsite: expecting Relocatable location, found {}",
// callsite)
// }
// match *dest {
// ValueLocation::Relocatable(_, ref symbol) => {
......@@ -3955,7 +3957,8 @@ pub fn emit_sym_table(vm: &VM){
file_st.write("\t.data\n".as_bytes()).unwrap();
file_st.write_fmt(format_args!("\t{}\n", directive_globl("mu_sym_table".to_string()))).unwrap();
file_st.write_fmt(format_args!("\t{}\n",
directive_globl("mu_sym_table".to_string()))).unwrap();
file_st.write_fmt(format_args!("mu_sym_table:\n")).unwrap();
file_st.write_fmt(format_args!(".quad {}\n", sym_vec.len())).unwrap();
for i in 0..sym_vec.len(){
......
......@@ -822,7 +822,8 @@ fn pass_2_int8_args_by_stack() -> VM {
});
emit_test! ((vm)
pass_2_int8_args_by_stack, pass_2_int8_args_by_stack_test1, pass_2_int8_args_by_stack_test1_v1,
pass_2_int8_args_by_stack, pass_2_int8_args_by_stack_test1,
pass_2_int8_args_by_stack_test1_v1,
RET Int,
EQ,
sig,
......@@ -1066,7 +1067,8 @@ fn pass_mixed_args_by_stack() -> VM {
});
emit_test!((vm)
pass_mixed_args_by_stack, pass_mixed_args_by_stack_test1, pass_mixed_args_by_stack_test1_v1,
pass_mixed_args_by_stack, pass_mixed_args_by_stack_test1,
pass_mixed_args_by_stack_test1_v1,
RET Int,
EQ,
sig,
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment