def _RunWat2Wasm(self, wat_path): wasm_path = ChangeDir(ChangeExt(wat_path, '.wasm'), self.temp_dir) self.wat2wasm.RunWithArgs(wat_path, '-o', wasm_path) return wasm_path
def _RunWasm2Wast(self, wasm_path): wast_path = ChangeDir(ChangeExt(wasm_path, '.wast'), self.temp_dir) self.wasm2wast.RunWithArgs(wasm_path, '-o', wast_path) return wast_path