Bug 1341650 - Pass TLS when calling wasm current_memory in the Ion backend. r=luke, a=jcristau
authorBenjamin Bouvier <benj@benj.me>
Wed, 22 Feb 2017 18:44:34 +0100
changeset 378672 dc2033fee558afd18452463d8214d45e9bc12eea
parent 378671 7808ea875b492d7582f33020d604afa971d4ba67
child 378673 5c876af2e9a3772e91f2b65c2f1053f852b05989
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke, jcristau
bugs1341650
milestone53.0a2
Bug 1341650 - Pass TLS when calling wasm current_memory in the Ion backend. r=luke, a=jcristau MozReview-Commit-ID: 2mLxEqdvGtK
js/src/wasm/WasmIonCompile.cpp
--- a/js/src/wasm/WasmIonCompile.cpp
+++ b/js/src/wasm/WasmIonCompile.cpp
@@ -2992,17 +2992,17 @@ EmitCurrentMemory(FunctionCompiler& f)
         return false;
 
     if (!f.startCall(&args))
         return false;
 
     if (!f.passInstance(&args))
         return false;
 
-    f.finishCall(&args, TlsUsage::Unused);
+    f.finishCall(&args, TlsUsage::Need);
 
     MDefinition* ret;
     if (!f.builtinInstanceMethodCall(SymbolicAddress::CurrentMemory, args, ValType::I32, &ret))
         return false;
 
     f.iter().setResult(ret);
     return true;
 }