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

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

Issue 505713002: [turbofan] Add backend support for signed loads. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix x64. Created 6 years, 4 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 DCHECK_EQ(LeaveCC, i.OutputSBit()); 370 DCHECK_EQ(LeaveCC, i.OutputSBit());
371 break; 371 break;
372 } 372 }
373 case kArmVcvtU32F64: { 373 case kArmVcvtU32F64: {
374 SwVfpRegister scratch = kScratchDoubleReg.low(); 374 SwVfpRegister scratch = kScratchDoubleReg.low();
375 __ vcvt_u32_f64(scratch, i.InputDoubleRegister(0)); 375 __ vcvt_u32_f64(scratch, i.InputDoubleRegister(0));
376 __ vmov(i.OutputRegister(), scratch); 376 __ vmov(i.OutputRegister(), scratch);
377 DCHECK_EQ(LeaveCC, i.OutputSBit()); 377 DCHECK_EQ(LeaveCC, i.OutputSBit());
378 break; 378 break;
379 } 379 }
380 case kArmLoadWord8: 380 case kArmLdrb:
381 __ ldrb(i.OutputRegister(), i.InputOffset()); 381 __ ldrb(i.OutputRegister(), i.InputOffset());
382 DCHECK_EQ(LeaveCC, i.OutputSBit()); 382 DCHECK_EQ(LeaveCC, i.OutputSBit());
383 break; 383 break;
384 case kArmStoreWord8: { 384 case kArmLdrsb:
385 __ ldrsb(i.OutputRegister(), i.InputOffset());
386 DCHECK_EQ(LeaveCC, i.OutputSBit());
387 break;
388 case kArmStrb: {
385 int index = 0; 389 int index = 0;
386 MemOperand operand = i.InputOffset(&index); 390 MemOperand operand = i.InputOffset(&index);
387 __ strb(i.InputRegister(index), operand); 391 __ strb(i.InputRegister(index), operand);
388 DCHECK_EQ(LeaveCC, i.OutputSBit()); 392 DCHECK_EQ(LeaveCC, i.OutputSBit());
389 break; 393 break;
390 } 394 }
391 case kArmLoadWord16: 395 case kArmLdrh:
392 __ ldrh(i.OutputRegister(), i.InputOffset()); 396 __ ldrh(i.OutputRegister(), i.InputOffset());
393 break; 397 break;
394 case kArmStoreWord16: { 398 case kArmLdrsh:
399 __ ldrsh(i.OutputRegister(), i.InputOffset());
400 break;
401 case kArmStrh: {
395 int index = 0; 402 int index = 0;
396 MemOperand operand = i.InputOffset(&index); 403 MemOperand operand = i.InputOffset(&index);
397 __ strh(i.InputRegister(index), operand); 404 __ strh(i.InputRegister(index), operand);
398 DCHECK_EQ(LeaveCC, i.OutputSBit()); 405 DCHECK_EQ(LeaveCC, i.OutputSBit());
399 break; 406 break;
400 } 407 }
401 case kArmLoadWord32: 408 case kArmLdr:
402 __ ldr(i.OutputRegister(), i.InputOffset()); 409 __ ldr(i.OutputRegister(), i.InputOffset());
403 break; 410 break;
404 case kArmStoreWord32: { 411 case kArmStr: {
405 int index = 0; 412 int index = 0;
406 MemOperand operand = i.InputOffset(&index); 413 MemOperand operand = i.InputOffset(&index);
407 __ str(i.InputRegister(index), operand); 414 __ str(i.InputRegister(index), operand);
408 DCHECK_EQ(LeaveCC, i.OutputSBit()); 415 DCHECK_EQ(LeaveCC, i.OutputSBit());
409 break; 416 break;
410 } 417 }
411 case kArmFloat64Load: 418 case kArmVldr64:
412 __ vldr(i.OutputDoubleRegister(), i.InputOffset()); 419 __ vldr(i.OutputDoubleRegister(), i.InputOffset());
413 DCHECK_EQ(LeaveCC, i.OutputSBit()); 420 DCHECK_EQ(LeaveCC, i.OutputSBit());
414 break; 421 break;
415 case kArmFloat64Store: { 422 case kArmVstr64: {
416 int index = 0; 423 int index = 0;
417 MemOperand operand = i.InputOffset(&index); 424 MemOperand operand = i.InputOffset(&index);
418 __ vstr(i.InputDoubleRegister(index), operand); 425 __ vstr(i.InputDoubleRegister(index), operand);
419 DCHECK_EQ(LeaveCC, i.OutputSBit()); 426 DCHECK_EQ(LeaveCC, i.OutputSBit());
420 break; 427 break;
421 } 428 }
422 case kArmStoreWriteBarrier: { 429 case kArmStoreWriteBarrier: {
423 Register object = i.InputRegister(0); 430 Register object = i.InputRegister(0);
424 Register index = i.InputRegister(1); 431 Register index = i.InputRegister(1);
425 Register value = i.InputRegister(2); 432 Register value = i.InputRegister(2);
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 831
825 void CodeGenerator::AddNopForSmiCodeInlining() { 832 void CodeGenerator::AddNopForSmiCodeInlining() {
826 // On 32-bit ARM we do not insert nops for inlined Smi code. 833 // On 32-bit ARM we do not insert nops for inlined Smi code.
827 UNREACHABLE(); 834 UNREACHABLE();
828 } 835 }
829 836
830 #undef __ 837 #undef __
831 } 838 }
832 } 839 }
833 } // namespace v8::internal::compiler 840 } // 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