Index: src/runtime/runtime-compiler.cc |
diff --git a/src/runtime/runtime-compiler.cc b/src/runtime/runtime-compiler.cc |
index 862fefcd5045ad3fbc7a5dcd85c2b032be34387a..5fb28c61ff4a0c50473e8a7af064a987d47cfa01 100644 |
--- a/src/runtime/runtime-compiler.cc |
+++ b/src/runtime/runtime-compiler.cc |
@@ -101,8 +101,9 @@ RUNTIME_FUNCTION(Runtime_InstantiateAsmJs) { |
return *result.ToHandleChecked(); |
} |
} |
- // Remove wasm data and return a smi 0 to indicate failure. |
- function->shared()->ClearAsmWasmData(); |
+ // Return a smi 0 to indicate failure. |
+ // AsmWasmData will get removed later as a consequence (but is kept so we |
Michael Starzinger
2016/08/11 11:44:10
See comments in compiler.cc about this.
bradn
2016/08/12 01:17:09
Done.
|
+ // know we've tried this and failed). |
return Smi::FromInt(0); |
} |