Index: src/a64/lithium-codegen-a64.cc |
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc |
index e42ff1089b139e2db96e15f232de2cf1a25714da..ef29cb5b3171a36c44225e01ff0cfd24a89ab8a8 100644 |
--- a/src/a64/lithium-codegen-a64.cc |
+++ b/src/a64/lithium-codegen-a64.cc |
@@ -2229,6 +2229,30 @@ void LCodeGen::DoClampTToUint8(LClampTToUint8* instr) { |
} |
+void LCodeGen::DoDoubleBits(LDoubleBits* instr) { |
+ DoubleRegister value_reg = ToDoubleRegister(instr->value()); |
+ Register result_reg = ToRegister(instr->result()); |
+ if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { |
+ __ Fmov(result_reg, value_reg); |
+ __ Mov(result_reg, Operand(result_reg, LSR, 32)); |
+ } else { |
+ __ Fmov(result_reg.W(), value_reg.S()); |
+ } |
+} |
+ |
+ |
+void LCodeGen::DoConstructDouble(LConstructDouble* instr) { |
+ Register hi_reg = ToRegister(instr->hi()); |
+ Register lo_reg = ToRegister(instr->lo()); |
+ Register temp = ToRegister(instr->temp()); |
+ DoubleRegister result_reg = ToDoubleRegister(instr->result()); |
+ |
+ __ And(temp, lo_reg, Operand(0xffffffff)); |
+ __ Orr(temp, temp, Operand(hi_reg, LSL, 32)); |
+ __ Fmov(result_reg, temp); |
+} |
+ |
+ |
void LCodeGen::DoClassOfTestAndBranch(LClassOfTestAndBranch* instr) { |
Handle<String> class_name = instr->hydrogen()->class_name(); |
Label* true_label = instr->TrueLabel(chunk_); |