| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/ast/scopes.h" | 7 #include "src/ast/scopes.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" |
| 11 #include "src/compiler/osr.h" | 11 #include "src/compiler/osr.h" |
| 12 #include "src/frames.h" | |
| 13 #include "src/ia32/assembler-ia32.h" | 12 #include "src/ia32/assembler-ia32.h" |
| 14 #include "src/ia32/frames-ia32.h" | 13 #include "src/ia32/frames-ia32.h" |
| 15 #include "src/ia32/macro-assembler-ia32.h" | 14 #include "src/ia32/macro-assembler-ia32.h" |
| 16 | 15 |
| 17 namespace v8 { | 16 namespace v8 { |
| 18 namespace internal { | 17 namespace internal { |
| 19 namespace compiler { | 18 namespace compiler { |
| 20 | 19 |
| 21 #define __ masm()-> | 20 #define __ masm()-> |
| 22 | 21 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 50 } | 49 } |
| 51 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); | 50 DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); |
| 52 FrameOffset offset = frame_access_state()->GetFrameOffset( | 51 FrameOffset offset = frame_access_state()->GetFrameOffset( |
| 53 AllocatedOperand::cast(op)->index()); | 52 AllocatedOperand::cast(op)->index()); |
| 54 return Operand(offset.from_stack_pointer() ? esp : ebp, | 53 return Operand(offset.from_stack_pointer() ? esp : ebp, |
| 55 offset.offset() + extra); | 54 offset.offset() + extra); |
| 56 } | 55 } |
| 57 | 56 |
| 58 Operand ToMaterializableOperand(int materializable_offset) { | 57 Operand ToMaterializableOperand(int materializable_offset) { |
| 59 FrameOffset offset = frame_access_state()->GetFrameOffset( | 58 FrameOffset offset = frame_access_state()->GetFrameOffset( |
| 60 FPOffsetToFrameSlot(materializable_offset)); | 59 Frame::FPOffsetToSlot(materializable_offset)); |
| 61 return Operand(offset.from_stack_pointer() ? esp : ebp, offset.offset()); | 60 return Operand(offset.from_stack_pointer() ? esp : ebp, offset.offset()); |
| 62 } | 61 } |
| 63 | 62 |
| 64 Operand HighOperand(InstructionOperand* op) { | 63 Operand HighOperand(InstructionOperand* op) { |
| 65 DCHECK(op->IsDoubleStackSlot()); | 64 DCHECK(op->IsDoubleStackSlot()); |
| 66 return ToOperand(op, kPointerSize); | 65 return ToOperand(op, kPointerSize); |
| 67 } | 66 } |
| 68 | 67 |
| 69 Immediate ToImmediate(InstructionOperand* operand) { | 68 Immediate ToImmediate(InstructionOperand* operand) { |
| 70 Constant constant = ToConstant(operand); | 69 Constant constant = ToConstant(operand); |
| (...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 1734 int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |
| 1736 __ Nop(padding_size); | 1735 __ Nop(padding_size); |
| 1737 } | 1736 } |
| 1738 } | 1737 } |
| 1739 | 1738 |
| 1740 #undef __ | 1739 #undef __ |
| 1741 | 1740 |
| 1742 } // namespace compiler | 1741 } // namespace compiler |
| 1743 } // namespace internal | 1742 } // namespace internal |
| 1744 } // namespace v8 | 1743 } // namespace v8 |
| OLD | NEW |