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