Index: src/asmjs/asm-js.cc |
diff --git a/src/asmjs/asm-js.cc b/src/asmjs/asm-js.cc |
index 496b1bc806a33d2c1f0d223bb594c400b0cd1121..3b3b870ce383630530f1e53b223408c074d89c97 100644 |
--- a/src/asmjs/asm-js.cc |
+++ b/src/asmjs/asm-js.cc |
@@ -212,9 +212,15 @@ MaybeHandle<FixedArray> AsmJs::CompileAsmViaWasm(CompilationInfo* info) { |
MessageLocation location(info->script(), info->literal()->position(), |
info->literal()->position()); |
char text[100]; |
- int length = base::OS::SNPrintF( |
- text, arraysize(text), "success, asm->wasm: %0.3f ms, compile: %0.3f ms", |
- asm_wasm_time, compile_time); |
+ int length; |
+ 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); |
+ } |
DCHECK_NE(-1, length); |
USE(length); |
Handle<String> stext(info->isolate()->factory()->InternalizeUtf8String(text)); |
@@ -321,9 +327,13 @@ MaybeHandle<Object> AsmJs::InstantiateAsmWasm(i::Isolate* isolate, |
} |
MessageLocation location(script, position, position); |
char text[50]; |
- int length = |
- base::OS::SNPrintF(text, arraysize(text), "success, %0.3f ms", |
- instantiate_timer.Elapsed().InMillisecondsF()); |
+ int length; |
+ if (FLAG_predictable) { |
+ length = base::OS::SNPrintF(text, arraysize(text), "success"); |
+ } else { |
+ length = base::OS::SNPrintF(text, arraysize(text), "success, %0.3f ms", |
+ instantiate_timer.Elapsed().InMillisecondsF()); |
+ } |
DCHECK_NE(-1, length); |
USE(length); |
Handle<String> stext(isolate->factory()->InternalizeUtf8String(text)); |