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