Bug 1301400: Baseline Wasm Compiler: Part 8: Implement SubtractI64, r=lth
authorHannes Verschore <hv1989@gmail.com>
Thu, 29 Sep 2016 22:33:22 +0200
changeset 315908 72b020fd3ce14ea2a8e5c5548899a281c3f07f2e
parent 315907 3a11c6866c92cc85911e9baa951f7f7b4c762c23
child 315909 c05925c3a813714fd3812b2e86669af453d10fdb
push id20634
push usercbook@mozilla.com
push dateFri, 30 Sep 2016 10:10:13 +0000
treeherderfx-team@afe79b010d13 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslth
bugs1301400
milestone52.0a1
Bug 1301400: Baseline Wasm Compiler: Part 8: Implement SubtractI64, r=lth
js/src/asmjs/WasmBaselineCompile.cpp
--- a/js/src/asmjs/WasmBaselineCompile.cpp
+++ b/js/src/asmjs/WasmBaselineCompile.cpp
@@ -2364,21 +2364,17 @@ class BaseCompiler
 
     void returnF32(RegF32 r) {
         moveF32(r, RegF32(ReturnFloat32Reg));
         popStackBeforeBranch(ctl_[0].framePushed);
         masm.jump(&returnLabel_);
     }
 
     void subtractI64(RegI64 rhs, RegI64 srcDest) {
-#if defined(JS_CODEGEN_X64)
-        masm.subq(rhs.reg.reg, srcDest.reg.reg);
-#else
-        MOZ_CRASH("BaseCompiler platform hook: subtractI64");
-#endif
+        masm.sub64(rhs.reg, srcDest.reg);
     }
 
     void multiplyI64(RegI64 rhs, RegI64 srcDest) {
 #if defined(JS_CODEGEN_X64)
         MOZ_ASSERT(srcDest.reg.reg == rax);
         MOZ_ASSERT(isAvailable(rdx));
         masm.imulq(rhs.reg.reg, srcDest.reg.reg);
 #else