| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/crankshaft/x87/lithium-codegen-x87.h" | 7 #include "src/crankshaft/x87/lithium-codegen-x87.h" |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 3126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3137 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); | 3137 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); |
| 3138 } else { | 3138 } else { |
| 3139 // If there is no frame, the context must be in esi. | 3139 // If there is no frame, the context must be in esi. |
| 3140 DCHECK(result.is(esi)); | 3140 DCHECK(result.is(esi)); |
| 3141 } | 3141 } |
| 3142 } | 3142 } |
| 3143 | 3143 |
| 3144 | 3144 |
| 3145 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3145 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
| 3146 DCHECK(ToRegister(instr->context()).is(esi)); | 3146 DCHECK(ToRegister(instr->context()).is(esi)); |
| 3147 __ push(Immediate(instr->hydrogen()->pairs())); | 3147 __ push(Immediate(instr->hydrogen()->declarations())); |
| 3148 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); | 3148 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); |
| 3149 __ push(Immediate(instr->hydrogen()->feedback_vector())); | 3149 __ push(Immediate(instr->hydrogen()->feedback_vector())); |
| 3150 CallRuntime(Runtime::kDeclareGlobals, instr); | 3150 CallRuntime(Runtime::kDeclareGlobals, instr); |
| 3151 } | 3151 } |
| 3152 | 3152 |
| 3153 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3153 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
| 3154 int formal_parameter_count, int arity, | 3154 int formal_parameter_count, int arity, |
| 3155 bool is_tail_call, LInstruction* instr) { | 3155 bool is_tail_call, LInstruction* instr) { |
| 3156 bool dont_adapt_arguments = | 3156 bool dont_adapt_arguments = |
| 3157 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 3157 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
| (...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5639 __ bind(deferred->exit()); | 5639 __ bind(deferred->exit()); |
| 5640 __ bind(&done); | 5640 __ bind(&done); |
| 5641 } | 5641 } |
| 5642 | 5642 |
| 5643 #undef __ | 5643 #undef __ |
| 5644 | 5644 |
| 5645 } // namespace internal | 5645 } // namespace internal |
| 5646 } // namespace v8 | 5646 } // namespace v8 |
| 5647 | 5647 |
| 5648 #endif // V8_TARGET_ARCH_X87 | 5648 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |