From c0f3fbb3d0af42a24e40e18ae3515110ab927f11 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Tue, 1 Dec 2015 17:02:44 +0900 Subject: [PATCH] Bug 1229057 - Part 5: Remove unused MacroAssemblerX86::addConstantFloat32. r=h4writer --HG-- extra : rebase_source : df9a013982a0e914c1044ec7868158f2ac52dc0a --- js/src/jit/none/MacroAssembler-none.h | 1 - js/src/jit/x86/MacroAssembler-x86.cpp | 10 ---------- js/src/jit/x86/MacroAssembler-x86.h | 1 - 3 files changed, 12 deletions(-) diff --git a/js/src/jit/none/MacroAssembler-none.h b/js/src/jit/none/MacroAssembler-none.h index b5c1b82eb54b..b85fe747f115 100644 --- a/js/src/jit/none/MacroAssembler-none.h +++ b/js/src/jit/none/MacroAssembler-none.h @@ -412,7 +412,6 @@ class MacroAssemblerNone : public Assembler void loadConstantDouble(double, FloatRegister) { MOZ_CRASH(); } void addConstantDouble(double, FloatRegister) { MOZ_CRASH(); } void loadConstantFloat32(float, FloatRegister) { MOZ_CRASH(); } - void addConstantFloat32(float, FloatRegister) { MOZ_CRASH(); } Condition testInt32Truthy(bool, ValueOperand) { MOZ_CRASH(); } Condition testStringTruthy(bool, ValueOperand) { MOZ_CRASH(); } void branchTestInt32Truthy(bool, ValueOperand, Label*) { MOZ_CRASH(); } diff --git a/js/src/jit/x86/MacroAssembler-x86.cpp b/js/src/jit/x86/MacroAssembler-x86.cpp index 55dcecda1680..79e594a2308e 100644 --- a/js/src/jit/x86/MacroAssembler-x86.cpp +++ b/js/src/jit/x86/MacroAssembler-x86.cpp @@ -124,16 +124,6 @@ MacroAssemblerX86::loadConstantFloat32(float f, FloatRegister dest) propagateOOM(flt->uses.append(CodeOffset(masm.size()))); } -void -MacroAssemblerX86::addConstantFloat32(float f, FloatRegister dest) -{ - Float* flt = getFloat(f); - if (!flt) - return; - masm.vaddss_mr(nullptr, dest.encoding(), dest.encoding()); - propagateOOM(flt->uses.append(CodeOffset(masm.size()))); -} - void MacroAssemblerX86::loadConstantInt32x4(const SimdConstant& v, FloatRegister dest) { diff --git a/js/src/jit/x86/MacroAssembler-x86.h b/js/src/jit/x86/MacroAssembler-x86.h index 925009e700c2..7f80a1626150 100644 --- a/js/src/jit/x86/MacroAssembler-x86.h +++ b/js/src/jit/x86/MacroAssembler-x86.h @@ -988,7 +988,6 @@ class MacroAssemblerX86 : public MacroAssemblerX86Shared void loadConstantDouble(double d, FloatRegister dest); void addConstantDouble(double d, FloatRegister dest); void loadConstantFloat32(float f, FloatRegister dest); - void addConstantFloat32(float f, FloatRegister dest); void loadConstantInt32x4(const SimdConstant& v, FloatRegister dest); void loadConstantFloat32x4(const SimdConstant& v, FloatRegister dest);