Skip to content

Commit dd5c426

Browse files
committed
[V8] Formatting of statistics output.
1 parent b149e0f commit dd5c426

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/V8Engine.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,7 @@ v8::Local<v8::WasmModuleObject> m::wasm::detail::instantiate(v8::Isolate &isolat
960960
auto buffer = v8::ArrayBuffer::New(&isolate, std::move(bs));
961961

962962
if (Options::Get().statistics)
963-
std::cout << "Wasm code size: " << binary_size << 'B' << std::endl;
963+
std::cout << "Wasm code size: " << binary_size << " B" << std::endl;
964964

965965
args_t module_args { buffer };
966966
auto wasm = Ctx->Global()->Get(Ctx, mkstr(isolate, "WebAssembly")).ToLocalChecked().As<v8::Object>(); // WebAssembly class
@@ -969,7 +969,7 @@ v8::Local<v8::WasmModuleObject> m::wasm::detail::instantiate(v8::Isolate &isolat
969969
free(binary_addr);
970970

971971
if (Options::Get().statistics)
972-
std::cout << "Machine code size: " << wasm_module->GetCompiledModule().Serialize().size << 'B' << std::endl;
972+
std::cout << "Machine code size: " << wasm_module->GetCompiledModule().Serialize().size << " B" << std::endl;
973973

974974
args_t instance_args { wasm_module, imports };
975975
return wasm->Get(Ctx, mkstr(isolate, "Instance")).ToLocalChecked().As<v8::Object>()

0 commit comments

Comments
 (0)