OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
(...skipping 5028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5039 DwVfpRegister value_reg = ToDoubleRegister(instr->value()); | 5039 DwVfpRegister value_reg = ToDoubleRegister(instr->value()); |
5040 Register result_reg = ToRegister(instr->result()); | 5040 Register result_reg = ToRegister(instr->result()); |
5041 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { | 5041 if (instr->hydrogen()->bits() == HDoubleBits::HIGH) { |
5042 __ VmovHigh(result_reg, value_reg); | 5042 __ VmovHigh(result_reg, value_reg); |
5043 } else { | 5043 } else { |
5044 __ VmovLow(result_reg, value_reg); | 5044 __ VmovLow(result_reg, value_reg); |
5045 } | 5045 } |
5046 } | 5046 } |
5047 | 5047 |
5048 | 5048 |
5049 void LCodeGen::DoConstructDouble(LConstructDouble* instr) { | |
5050 Register hi_reg = ToRegister(instr->hi()); | |
5051 Register lo_reg = ToRegister(instr->lo()); | |
5052 DwVfpRegister result_reg = ToDoubleRegister(instr->result()); | |
5053 __ VmovHigh(result_reg, hi_reg); | |
5054 __ VmovLow(result_reg, lo_reg); | |
5055 } | |
5056 | |
5057 | |
5058 void LCodeGen::DoAllocate(LAllocate* instr) { | 5049 void LCodeGen::DoAllocate(LAllocate* instr) { |
5059 class DeferredAllocate final : public LDeferredCode { | 5050 class DeferredAllocate final : public LDeferredCode { |
5060 public: | 5051 public: |
5061 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) | 5052 DeferredAllocate(LCodeGen* codegen, LAllocate* instr) |
5062 : LDeferredCode(codegen), instr_(instr) { } | 5053 : LDeferredCode(codegen), instr_(instr) { } |
5063 void Generate() override { codegen()->DoDeferredAllocate(instr_); } | 5054 void Generate() override { codegen()->DoDeferredAllocate(instr_); } |
5064 LInstruction* instr() override { return instr_; } | 5055 LInstruction* instr() override { return instr_; } |
5065 | 5056 |
5066 private: | 5057 private: |
5067 LAllocate* instr_; | 5058 LAllocate* instr_; |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5557 __ ldr(result, FieldMemOperand(scratch, | 5548 __ ldr(result, FieldMemOperand(scratch, |
5558 FixedArray::kHeaderSize - kPointerSize)); | 5549 FixedArray::kHeaderSize - kPointerSize)); |
5559 __ bind(deferred->exit()); | 5550 __ bind(deferred->exit()); |
5560 __ bind(&done); | 5551 __ bind(&done); |
5561 } | 5552 } |
5562 | 5553 |
5563 #undef __ | 5554 #undef __ |
5564 | 5555 |
5565 } // namespace internal | 5556 } // namespace internal |
5566 } // namespace v8 | 5557 } // namespace v8 |
OLD | NEW |