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

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

Issue 2086653003: [Turbofan] Add the concept of aliasing to RegisterConfiguration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 6 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
« no previous file with comments | « no previous file | src/compiler/instruction.cc » ('j') | test/unittests/unittests.gyp » ('J')
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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/compiler/instruction.cc » ('j') | test/unittests/unittests.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698