| 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/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
| 9 #include "src/compiler/gap-resolver.h" | 9 #include "src/compiler/gap-resolver.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 case kArmLdr: | 408 case kArmLdr: |
| 409 __ ldr(i.OutputRegister(), i.InputOffset()); | 409 __ ldr(i.OutputRegister(), i.InputOffset()); |
| 410 break; | 410 break; |
| 411 case kArmStr: { | 411 case kArmStr: { |
| 412 int index = 0; | 412 int index = 0; |
| 413 MemOperand operand = i.InputOffset(&index); | 413 MemOperand operand = i.InputOffset(&index); |
| 414 __ str(i.InputRegister(index), operand); | 414 __ str(i.InputRegister(index), operand); |
| 415 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 415 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 416 break; | 416 break; |
| 417 } | 417 } |
| 418 case kArmVldr32: { |
| 419 SwVfpRegister scratch = kScratchDoubleReg.low(); |
| 420 __ vldr(scratch, i.InputOffset()); |
| 421 __ vcvt_f64_f32(i.OutputDoubleRegister(), scratch); |
| 422 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 423 break; |
| 424 } |
| 425 case kArmVstr32: { |
| 426 int index = 0; |
| 427 SwVfpRegister scratch = kScratchDoubleReg.low(); |
| 428 MemOperand operand = i.InputOffset(&index); |
| 429 __ vcvt_f32_f64(scratch, i.InputDoubleRegister(index)); |
| 430 __ vstr(scratch, operand); |
| 431 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 432 break; |
| 433 } |
| 418 case kArmVldr64: | 434 case kArmVldr64: |
| 419 __ vldr(i.OutputDoubleRegister(), i.InputOffset()); | 435 __ vldr(i.OutputDoubleRegister(), i.InputOffset()); |
| 420 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 436 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 421 break; | 437 break; |
| 422 case kArmVstr64: { | 438 case kArmVstr64: { |
| 423 int index = 0; | 439 int index = 0; |
| 424 MemOperand operand = i.InputOffset(&index); | 440 MemOperand operand = i.InputOffset(&index); |
| 425 __ vstr(i.InputDoubleRegister(index), operand); | 441 __ vstr(i.InputDoubleRegister(index), operand); |
| 426 DCHECK_EQ(LeaveCC, i.OutputSBit()); | 442 DCHECK_EQ(LeaveCC, i.OutputSBit()); |
| 427 break; | 443 break; |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 831 | 847 |
| 832 void CodeGenerator::AddNopForSmiCodeInlining() { | 848 void CodeGenerator::AddNopForSmiCodeInlining() { |
| 833 // On 32-bit ARM we do not insert nops for inlined Smi code. | 849 // On 32-bit ARM we do not insert nops for inlined Smi code. |
| 834 UNREACHABLE(); | 850 UNREACHABLE(); |
| 835 } | 851 } |
| 836 | 852 |
| 837 #undef __ | 853 #undef __ |
| 838 } | 854 } |
| 839 } | 855 } |
| 840 } // namespace v8::internal::compiler | 856 } // namespace v8::internal::compiler |
| OLD | NEW |