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

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

Issue 1050803002: [turbofan] cleanup InstructionOperand a little (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 8 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/arm64/code-generator-arm64.cc » ('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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 MemOperand InputOffset(size_t first_index = 0) { 144 MemOperand InputOffset(size_t first_index = 0) {
145 return InputOffset(&first_index); 145 return InputOffset(&first_index);
146 } 146 }
147 147
148 MemOperand ToMemOperand(InstructionOperand* op) const { 148 MemOperand ToMemOperand(InstructionOperand* op) const {
149 DCHECK(op != NULL); 149 DCHECK(op != NULL);
150 DCHECK(!op->IsRegister()); 150 DCHECK(!op->IsRegister());
151 DCHECK(!op->IsDoubleRegister()); 151 DCHECK(!op->IsDoubleRegister());
152 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); 152 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot());
153 // The linkage computes where all spill slots are located. 153 // The linkage computes where all spill slots are located.
154 FrameOffset offset = linkage()->GetFrameOffset(op->index(), frame(), 0); 154 FrameOffset offset = linkage()->GetFrameOffset(
155 AllocatedOperand::cast(op)->index(), frame(), 0);
155 return MemOperand(offset.from_stack_pointer() ? sp : fp, offset.offset()); 156 return MemOperand(offset.from_stack_pointer() ? sp : fp, offset.offset());
156 } 157 }
157 }; 158 };
158 159
159 160
160 namespace { 161 namespace {
161 162
162 class OutOfLineLoadFloat32 FINAL : public OutOfLineCode { 163 class OutOfLineLoadFloat32 FINAL : public OutOfLineCode {
163 public: 164 public:
164 OutOfLineLoadFloat32(CodeGenerator* gen, SwVfpRegister result) 165 OutOfLineLoadFloat32(CodeGenerator* gen, SwVfpRegister result)
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 } 1164 }
1164 } 1165 }
1165 MarkLazyDeoptSite(); 1166 MarkLazyDeoptSite();
1166 } 1167 }
1167 1168
1168 #undef __ 1169 #undef __
1169 1170
1170 } // namespace compiler 1171 } // namespace compiler
1171 } // namespace internal 1172 } // namespace internal
1172 } // namespace v8 1173 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698