Chromium Code Reviews| Index: src/asmjs/asm-js.cc |
| diff --git a/src/asmjs/asm-js.cc b/src/asmjs/asm-js.cc |
| index b4026b0b191e934df8f0e7e0e9a1c396e54a771c..0a521b44546dc9c8336dd071f0de442793935ca6 100644 |
| --- a/src/asmjs/asm-js.cc |
| +++ b/src/asmjs/asm-js.cc |
| @@ -191,6 +191,7 @@ MaybeHandle<FixedArray> AsmJs::CompileAsmViaWasm(CompilationInfo* info) { |
| internal::wasm::kAsmJsOrigin, info->script(), asm_offsets_vec); |
| DCHECK(!compiled.is_null()); |
| double compile_time = compile_timer.Elapsed().InMillisecondsF(); |
| + uintptr_t wasm_size = module->end() - module->begin(); |
|
Mircea Trofin
2017/01/26 07:19:31
DCHECK end >= begin
bradn
2017/01/26 07:46:12
Done.
|
| wasm::AsmTyper::StdlibSet uses = builder.typer()->StdlibUses(); |
| Handle<FixedArray> uses_array = |
| @@ -216,10 +217,10 @@ MaybeHandle<FixedArray> AsmJs::CompileAsmViaWasm(CompilationInfo* info) { |
| if (FLAG_predictable) { |
| length = base::OS::SNPrintF(text, arraysize(text), "success"); |
| } else { |
| - length = |
| - base::OS::SNPrintF(text, arraysize(text), |
| - "success, asm->wasm: %0.3f ms, compile: %0.3f ms", |
| - asm_wasm_time, compile_time); |
| + length = base::OS::SNPrintF( |
| + text, arraysize(text), |
| + "success, asm->wasm: %0.3f ms, compile: %0.3f ms, %" PRIuPTR " bytes", |
| + asm_wasm_time, compile_time, wasm_size); |
| } |
| DCHECK_NE(-1, length); |
| USE(length); |