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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.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 | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-generator.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/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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 UNREACHABLE(); 181 UNREACHABLE();
182 return Operand(-1); 182 return Operand(-1);
183 } 183 }
184 184
185 MemOperand ToMemOperand(InstructionOperand* op, MacroAssembler* masm) const { 185 MemOperand ToMemOperand(InstructionOperand* op, MacroAssembler* masm) const {
186 DCHECK(op != NULL); 186 DCHECK(op != NULL);
187 DCHECK(!op->IsRegister()); 187 DCHECK(!op->IsRegister());
188 DCHECK(!op->IsDoubleRegister()); 188 DCHECK(!op->IsDoubleRegister());
189 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); 189 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot());
190 // The linkage computes where all spill slots are located. 190 // The linkage computes where all spill slots are located.
191 FrameOffset offset = linkage()->GetFrameOffset(op->index(), frame(), 0); 191 FrameOffset offset = linkage()->GetFrameOffset(
192 AllocatedOperand::cast(op)->index(), frame(), 0);
192 return MemOperand(offset.from_stack_pointer() ? masm->StackPointer() : fp, 193 return MemOperand(offset.from_stack_pointer() ? masm->StackPointer() : fp,
193 offset.offset()); 194 offset.offset());
194 } 195 }
195 }; 196 };
196 197
197 198
198 namespace { 199 namespace {
199 200
200 class OutOfLineLoadNaN32 FINAL : public OutOfLineCode { 201 class OutOfLineLoadNaN32 FINAL : public OutOfLineCode {
201 public: 202 public:
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1267 } 1268 }
1268 } 1269 }
1269 MarkLazyDeoptSite(); 1270 MarkLazyDeoptSite();
1270 } 1271 }
1271 1272
1272 #undef __ 1273 #undef __
1273 1274
1274 } // namespace compiler 1275 } // namespace compiler
1275 } // namespace internal 1276 } // namespace internal
1276 } // namespace v8 1277 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698