Bug 1341650: Pass TLS when calling wasm current_memory in the Ion backend; r=luke
authorBenjamin Bouvier <benj@benj.me>
Wed, 22 Feb 2017 18:44:34 +0100
changeset 344578 78329879784e84ceb2cb579b0ad1e8db14f92013
parent 344577 8b432965d1a6f503e402a24d0052362accfed774
child 344579 286d945249acc6ef5f4302970d1b53fc70e66d77
push id31414
push usercbook@mozilla.com
push dateFri, 24 Feb 2017 10:47:41 +0000
treeherdermozilla-central@be661bae6cb9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs1341650
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1341650: Pass TLS when calling wasm current_memory in the Ion backend; r=luke 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;
 }