| 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" | 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2955 // If there is no frame, the context must be in esi. | 2955 // If there is no frame, the context must be in esi. |
| 2956 DCHECK(result.is(esi)); | 2956 DCHECK(result.is(esi)); |
| 2957 } | 2957 } |
| 2958 } | 2958 } |
| 2959 | 2959 |
| 2960 | 2960 |
| 2961 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 2961 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
| 2962 DCHECK(ToRegister(instr->context()).is(esi)); | 2962 DCHECK(ToRegister(instr->context()).is(esi)); |
| 2963 __ push(Immediate(instr->hydrogen()->pairs())); | 2963 __ push(Immediate(instr->hydrogen()->pairs())); |
| 2964 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); | 2964 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); |
| 2965 __ push(Immediate(instr->hydrogen()->feedback_vector())); |
| 2965 CallRuntime(Runtime::kDeclareGlobals, instr); | 2966 CallRuntime(Runtime::kDeclareGlobals, instr); |
| 2966 } | 2967 } |
| 2967 | 2968 |
| 2968 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 2969 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
| 2969 int formal_parameter_count, int arity, | 2970 int formal_parameter_count, int arity, |
| 2970 bool is_tail_call, LInstruction* instr) { | 2971 bool is_tail_call, LInstruction* instr) { |
| 2971 bool dont_adapt_arguments = | 2972 bool dont_adapt_arguments = |
| 2972 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 2973 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
| 2973 bool can_invoke_directly = | 2974 bool can_invoke_directly = |
| 2974 dont_adapt_arguments || formal_parameter_count == arity; | 2975 dont_adapt_arguments || formal_parameter_count == arity; |
| (...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5307 __ bind(deferred->exit()); | 5308 __ bind(deferred->exit()); |
| 5308 __ bind(&done); | 5309 __ bind(&done); |
| 5309 } | 5310 } |
| 5310 | 5311 |
| 5311 #undef __ | 5312 #undef __ |
| 5312 | 5313 |
| 5313 } // namespace internal | 5314 } // namespace internal |
| 5314 } // namespace v8 | 5315 } // namespace v8 |
| 5315 | 5316 |
| 5316 #endif // V8_TARGET_ARCH_IA32 | 5317 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |