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/arm64/macro-assembler-arm64.h" | 7 #include "src/arm64/macro-assembler-arm64.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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 break; | 419 break; |
420 case kArm64StrW: | 420 case kArm64StrW: |
421 __ Str(i.InputRegister32(2), i.MemoryOperand()); | 421 __ Str(i.InputRegister32(2), i.MemoryOperand()); |
422 break; | 422 break; |
423 case kArm64Ldr: | 423 case kArm64Ldr: |
424 __ Ldr(i.OutputRegister(), i.MemoryOperand()); | 424 __ Ldr(i.OutputRegister(), i.MemoryOperand()); |
425 break; | 425 break; |
426 case kArm64Str: | 426 case kArm64Str: |
427 __ Str(i.InputRegister(2), i.MemoryOperand()); | 427 __ Str(i.InputRegister(2), i.MemoryOperand()); |
428 break; | 428 break; |
| 429 case kArm64LdrS: { |
| 430 UseScratchRegisterScope scope(masm()); |
| 431 FPRegister scratch = scope.AcquireS(); |
| 432 __ Ldr(scratch, i.MemoryOperand()); |
| 433 __ Fcvt(i.OutputDoubleRegister(), scratch); |
| 434 break; |
| 435 } |
| 436 case kArm64StrS: { |
| 437 UseScratchRegisterScope scope(masm()); |
| 438 FPRegister scratch = scope.AcquireS(); |
| 439 __ Fcvt(scratch, i.InputDoubleRegister(2)); |
| 440 __ Str(scratch, i.MemoryOperand()); |
| 441 break; |
| 442 } |
429 case kArm64LdrD: | 443 case kArm64LdrD: |
430 __ Ldr(i.OutputDoubleRegister(), i.MemoryOperand()); | 444 __ Ldr(i.OutputDoubleRegister(), i.MemoryOperand()); |
431 break; | 445 break; |
432 case kArm64StrD: | 446 case kArm64StrD: |
433 __ Str(i.InputDoubleRegister(2), i.MemoryOperand()); | 447 __ Str(i.InputDoubleRegister(2), i.MemoryOperand()); |
434 break; | 448 break; |
435 case kArm64StoreWriteBarrier: { | 449 case kArm64StoreWriteBarrier: { |
436 Register object = i.InputRegister(0); | 450 Register object = i.InputRegister(0); |
437 Register index = i.InputRegister(1); | 451 Register index = i.InputRegister(1); |
438 Register value = i.InputRegister(2); | 452 Register value = i.InputRegister(2); |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 } | 847 } |
834 | 848 |
835 | 849 |
836 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } | 850 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } |
837 | 851 |
838 #undef __ | 852 #undef __ |
839 | 853 |
840 } // namespace compiler | 854 } // namespace compiler |
841 } // namespace internal | 855 } // namespace internal |
842 } // namespace v8 | 856 } // namespace v8 |
OLD | NEW |