Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/compiler/arm/code-generator-arm.cc

Issue 500343002: [turbofan] Add backend support for load/store float32 values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-codes-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698