| 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" | 
|    12 #include "src/x87/assembler-x87.h" |    13 #include "src/x87/assembler-x87.h" | 
|    13 #include "src/x87/frames-x87.h" |    14 #include "src/x87/frames-x87.h" | 
|    14 #include "src/x87/macro-assembler-x87.h" |    15 #include "src/x87/macro-assembler-x87.h" | 
|    15  |    16  | 
|    16 namespace v8 { |    17 namespace v8 { | 
|    17 namespace internal { |    18 namespace internal { | 
|    18 namespace compiler { |    19 namespace compiler { | 
|    19  |    20  | 
|    20 #define __ masm()-> |    21 #define __ masm()-> | 
|    21  |    22  | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
|    43     } |    44     } | 
|    44     DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); |    45     DCHECK(op->IsStackSlot() || op->IsDoubleStackSlot()); | 
|    45     FrameOffset offset = frame_access_state()->GetFrameOffset( |    46     FrameOffset offset = frame_access_state()->GetFrameOffset( | 
|    46         AllocatedOperand::cast(op)->index()); |    47         AllocatedOperand::cast(op)->index()); | 
|    47     return Operand(offset.from_stack_pointer() ? esp : ebp, |    48     return Operand(offset.from_stack_pointer() ? esp : ebp, | 
|    48                    offset.offset() + extra); |    49                    offset.offset() + extra); | 
|    49   } |    50   } | 
|    50  |    51  | 
|    51   Operand ToMaterializableOperand(int materializable_offset) { |    52   Operand ToMaterializableOperand(int materializable_offset) { | 
|    52     FrameOffset offset = frame_access_state()->GetFrameOffset( |    53     FrameOffset offset = frame_access_state()->GetFrameOffset( | 
|    53         Frame::FPOffsetToSlot(materializable_offset)); |    54         FPOffsetToFrameSlot(materializable_offset)); | 
|    54     return Operand(offset.from_stack_pointer() ? esp : ebp, offset.offset()); |    55     return Operand(offset.from_stack_pointer() ? esp : ebp, offset.offset()); | 
|    55   } |    56   } | 
|    56  |    57  | 
|    57   Operand HighOperand(InstructionOperand* op) { |    58   Operand HighOperand(InstructionOperand* op) { | 
|    58     DCHECK(op->IsDoubleStackSlot()); |    59     DCHECK(op->IsDoubleStackSlot()); | 
|    59     return ToOperand(op, kPointerSize); |    60     return ToOperand(op, kPointerSize); | 
|    60   } |    61   } | 
|    61  |    62  | 
|    62   Immediate ToImmediate(InstructionOperand* operand) { |    63   Immediate ToImmediate(InstructionOperand* operand) { | 
|    63     Constant constant = ToConstant(operand); |    64     Constant constant = ToConstant(operand); | 
| (...skipping 2164 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2228     int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; |  2229     int padding_size = last_lazy_deopt_pc_ + space_needed - current_pc; | 
|  2229     __ Nop(padding_size); |  2230     __ Nop(padding_size); | 
|  2230   } |  2231   } | 
|  2231 } |  2232 } | 
|  2232  |  2233  | 
|  2233 #undef __ |  2234 #undef __ | 
|  2234  |  2235  | 
|  2235 }  // namespace compiler |  2236 }  // namespace compiler | 
|  2236 }  // namespace internal |  2237 }  // namespace internal | 
|  2237 }  // namespace v8 |  2238 }  // namespace v8 | 
| OLD | NEW |