| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |