Index: src/compiler/code-generator-impl.h |
diff --git a/src/compiler/code-generator-impl.h b/src/compiler/code-generator-impl.h |
index adb840069cc9f369637acc58c502af5f25446092..4e09a276ef38b17e22a189b4a37cb069431489ab 100644 |
--- a/src/compiler/code-generator-impl.h |
+++ b/src/compiler/code-generator-impl.h |
@@ -31,6 +31,10 @@ class InstructionOperandConverter { |
return ToRegister(instr_->InputAt(index)); |
} |
+ FloatRegister InputFloatRegister(size_t index) { |
+ return ToFloatRegister(instr_->InputAt(index)); |
+ } |
+ |
DoubleRegister InputDoubleRegister(size_t index) { |
return ToDoubleRegister(instr_->InputAt(index)); |
} |
@@ -89,6 +93,10 @@ class InstructionOperandConverter { |
return ToRegister(instr_->TempAt(index)); |
} |
+ FloatRegister OutputFloatRegister() { |
+ return ToFloatRegister(instr_->Output()); |
+ } |
+ |
DoubleRegister OutputDoubleRegister() { |
return ToDoubleRegister(instr_->Output()); |
} |
@@ -111,6 +119,10 @@ class InstructionOperandConverter { |
return LocationOperand::cast(op)->GetDoubleRegister(); |
} |
+ FloatRegister ToFloatRegister(InstructionOperand* op) { |
+ return LocationOperand::cast(op)->GetFloatRegister(); |
+ } |
+ |
Constant ToConstant(InstructionOperand* op) { |
if (op->IsImmediate()) { |
return gen_->code()->GetImmediate(ImmediateOperand::cast(op)); |