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

Side by Side Diff: src/compiler/ppc/code-generator-ppc.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/move-optimizer.cc ('k') | src/compiler/register-allocator.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/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/ppc/macro-assembler-ppc.h" 10 #include "src/ppc/macro-assembler-ppc.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 MemOperand MemoryOperand(AddressingMode* mode, size_t first_index = 0) { 96 MemOperand MemoryOperand(AddressingMode* mode, size_t first_index = 0) {
97 return MemoryOperand(mode, &first_index); 97 return MemoryOperand(mode, &first_index);
98 } 98 }
99 99
100 MemOperand ToMemOperand(InstructionOperand* op) const { 100 MemOperand ToMemOperand(InstructionOperand* op) const {
101 DCHECK(op != NULL); 101 DCHECK(op != NULL);
102 DCHECK(!op->IsRegister()); 102 DCHECK(!op->IsRegister());
103 DCHECK(!op->IsDoubleRegister()); 103 DCHECK(!op->IsDoubleRegister());
104 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); 104 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot());
105 // The linkage computes where all spill slots are located. 105 // The linkage computes where all spill slots are located.
106 FrameOffset offset = linkage()->GetFrameOffset(op->index(), frame(), 0); 106 FrameOffset offset = linkage()->GetFrameOffset(
107 AllocatedOperand::cast(op)->index(), frame(), 0);
107 return MemOperand(offset.from_stack_pointer() ? sp : fp, offset.offset()); 108 return MemOperand(offset.from_stack_pointer() ? sp : fp, offset.offset());
108 } 109 }
109 }; 110 };
110 111
111 112
112 static inline bool HasRegisterInput(Instruction* instr, size_t index) { 113 static inline bool HasRegisterInput(Instruction* instr, size_t index) {
113 return instr->InputAt(index)->IsRegister(); 114 return instr->InputAt(index)->IsRegister();
114 } 115 }
115 116
116 117
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 } 1488 }
1488 } 1489 }
1489 MarkLazyDeoptSite(); 1490 MarkLazyDeoptSite();
1490 } 1491 }
1491 1492
1492 #undef __ 1493 #undef __
1493 1494
1494 } // namespace compiler 1495 } // namespace compiler
1495 } // namespace internal 1496 } // namespace internal
1496 } // namespace v8 1497 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/move-optimizer.cc ('k') | src/compiler/register-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698