OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/arm/macro-assembler-arm.h" | 7 #include "src/arm/macro-assembler-arm.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/gap-resolver.h" | 10 #include "src/compiler/gap-resolver.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 SwVfpRegister OutputFloat32Register(size_t index = 0) { | 30 SwVfpRegister OutputFloat32Register(size_t index = 0) { |
31 return ToFloat32Register(instr_->OutputAt(index)); | 31 return ToFloat32Register(instr_->OutputAt(index)); |
32 } | 32 } |
33 | 33 |
34 SwVfpRegister InputFloat32Register(size_t index) { | 34 SwVfpRegister InputFloat32Register(size_t index) { |
35 return ToFloat32Register(instr_->InputAt(index)); | 35 return ToFloat32Register(instr_->InputAt(index)); |
36 } | 36 } |
37 | 37 |
38 SwVfpRegister ToFloat32Register(InstructionOperand* op) { | 38 SwVfpRegister ToFloat32Register(InstructionOperand* op) { |
39 return ToFloat64Register(op).low(); | 39 DCHECK(LocationOperand::cast(op)->representation() == |
| 40 MachineRepresentation::kFloat32); |
| 41 return LocationOperand::cast(op)->GetFloatRegister(); |
40 } | 42 } |
41 | 43 |
42 LowDwVfpRegister OutputFloat64Register(size_t index = 0) { | 44 LowDwVfpRegister OutputFloat64Register(size_t index = 0) { |
43 return ToFloat64Register(instr_->OutputAt(index)); | 45 return ToFloat64Register(instr_->OutputAt(index)); |
44 } | 46 } |
45 | 47 |
46 LowDwVfpRegister InputFloat64Register(size_t index) { | 48 LowDwVfpRegister InputFloat64Register(size_t index) { |
47 return ToFloat64Register(instr_->InputAt(index)); | 49 return ToFloat64Register(instr_->InputAt(index)); |
48 } | 50 } |
49 | 51 |
(...skipping 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1836 padding_size -= v8::internal::Assembler::kInstrSize; | 1838 padding_size -= v8::internal::Assembler::kInstrSize; |
1837 } | 1839 } |
1838 } | 1840 } |
1839 } | 1841 } |
1840 | 1842 |
1841 #undef __ | 1843 #undef __ |
1842 | 1844 |
1843 } // namespace compiler | 1845 } // namespace compiler |
1844 } // namespace internal | 1846 } // namespace internal |
1845 } // namespace v8 | 1847 } // namespace v8 |
OLD | NEW |