Simplify code using the FunctionBuilder helper functions.

This commit is contained in:
Dan Gohman
2017-10-24 15:28:28 -07:00
parent bbdce7e3e0
commit 2d5faa01af

View File

@@ -362,7 +362,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
state.peekn(num_args), state.peekn(num_args),
); );
state.popn(num_args); state.popn(num_args);
state.pushn(builder.func.dfg.inst_results(call)); state.pushn(builder.inst_results(call));
} }
Operator::CallIndirect { index, table_index } => { Operator::CallIndirect { index, table_index } => {
// `index` is the index of the function's signature and `table_index` is the index of // `index` is the index of the function's signature and `table_index` is the index of
@@ -378,7 +378,7 @@ pub fn translate_operator<FE: FuncEnvironment + ?Sized>(
state.peekn(num_args), state.peekn(num_args),
); );
state.popn(num_args); state.popn(num_args);
state.pushn(builder.func.dfg.inst_results(call)); state.pushn(builder.inst_results(call));
} }
/******************************* Memory management *********************************** /******************************* Memory management ***********************************
* Memory management is handled by environment. It is usually translated into calls to * Memory management is handled by environment. It is usually translated into calls to