@@ -17,43 +17,43 @@ struct WASMFunctionInstance;
1717struct WASMExecEnv ;
1818
1919typedef struct WASMInterpFrame {
20- /* The frame of the caller that are calling the current function. */
21- struct WASMInterpFrame * prev_frame ;
20+ /* The frame of the caller that are calling the current function. */
21+ struct WASMInterpFrame * prev_frame ;
2222
23- /* The current WASM function. */
24- struct WASMFunctionInstance * function ;
23+ /* The current WASM function. */
24+ struct WASMFunctionInstance * function ;
2525
26- /* Instruction pointer of the bytecode array. */
27- uint8 * ip ;
26+ /* Instruction pointer of the bytecode array. */
27+ uint8 * ip ;
2828
2929#if WASM_ENABLE_PERF_PROFILING != 0
30- uint64 time_started ;
30+ uint64 time_started ;
3131#endif
3232
3333#if WASM_ENABLE_FAST_INTERP != 0
34- /* return offset of the first return value of current frame.
35- the callee will put return values here continuously */
36- uint32 ret_offset ;
37- uint32 * lp ;
38- uint32 operand [1 ];
34+ /* Return offset of the first return value of current frame,
35+ the callee will put return values here continuously */
36+ uint32 ret_offset ;
37+ uint32 * lp ;
38+ uint32 operand [1 ];
3939#else
40- /* Operand stack top pointer of the current frame. The bottom of
41- the stack is the next cell after the last local variable. */
42- uint32 * sp_bottom ;
43- uint32 * sp_boundary ;
44- uint32 * sp ;
40+ /* Operand stack top pointer of the current frame. The bottom of
41+ the stack is the next cell after the last local variable. */
42+ uint32 * sp_bottom ;
43+ uint32 * sp_boundary ;
44+ uint32 * sp ;
4545
46- WASMBranchBlock * csp_bottom ;
47- WASMBranchBlock * csp_boundary ;
48- WASMBranchBlock * csp ;
46+ WASMBranchBlock * csp_bottom ;
47+ WASMBranchBlock * csp_boundary ;
48+ WASMBranchBlock * csp ;
4949
50- /* Frame data, the layout is:
51- lp: param_cell_count + local_cell_count
52- sp_bottom to sp_boundary: stack of data
53- csp_bottom to csp_boundary: stack of block
54- ref to frame end: data types of local vairables and stack data
55- */
56- uint32 lp [1 ];
50+ /* Frame data, the layout is:
51+ lp: param_cell_count + local_cell_count
52+ sp_bottom to sp_boundary: stack of data
53+ csp_bottom to csp_boundary: stack of block
54+ ref to frame end: data types of local vairables and stack data
55+ */
56+ uint32 lp [1 ];
5757#endif
5858} WASMInterpFrame ;
5959
@@ -68,15 +68,15 @@ typedef struct WASMInterpFrame {
6868static inline unsigned
6969wasm_interp_interp_frame_size (unsigned all_cell_num )
7070{
71- return align_uint ((uint32 )offsetof(WASMInterpFrame , lp )
72- + all_cell_num * 5 , 4 );
71+ return align_uint ((uint32 )offsetof(WASMInterpFrame , lp ) + all_cell_num * 5 ,
72+ 4 );
7373}
7474
7575void
7676wasm_interp_call_wasm (struct WASMModuleInstance * module_inst ,
7777 struct WASMExecEnv * exec_env ,
78- struct WASMFunctionInstance * function ,
79- uint32 argc , uint32 argv []);
78+ struct WASMFunctionInstance * function , uint32 argc ,
79+ uint32 argv []);
8080
8181#ifdef __cplusplus
8282}
0 commit comments