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 2851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2862 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); | 2862 __ mov(result, Operand(ebp, StandardFrameConstants::kContextOffset)); |
2863 } else { | 2863 } else { |
2864 // If there is no frame, the context must be in esi. | 2864 // If there is no frame, the context must be in esi. |
2865 DCHECK(result.is(esi)); | 2865 DCHECK(result.is(esi)); |
2866 } | 2866 } |
2867 } | 2867 } |
2868 | 2868 |
2869 | 2869 |
2870 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 2870 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
2871 DCHECK(ToRegister(instr->context()).is(esi)); | 2871 DCHECK(ToRegister(instr->context()).is(esi)); |
2872 __ push(Immediate(instr->hydrogen()->pairs())); | 2872 __ push(Immediate(instr->hydrogen()->declarations())); |
2873 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); | 2873 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); |
2874 __ push(Immediate(instr->hydrogen()->feedback_vector())); | 2874 __ push(Immediate(instr->hydrogen()->feedback_vector())); |
2875 CallRuntime(Runtime::kDeclareGlobals, instr); | 2875 CallRuntime(Runtime::kDeclareGlobals, instr); |
2876 } | 2876 } |
2877 | 2877 |
2878 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 2878 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
2879 int formal_parameter_count, int arity, | 2879 int formal_parameter_count, int arity, |
2880 bool is_tail_call, LInstruction* instr) { | 2880 bool is_tail_call, LInstruction* instr) { |
2881 bool dont_adapt_arguments = | 2881 bool dont_adapt_arguments = |
2882 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 2882 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
(...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5148 __ bind(deferred->exit()); | 5148 __ bind(deferred->exit()); |
5149 __ bind(&done); | 5149 __ bind(&done); |
5150 } | 5150 } |
5151 | 5151 |
5152 #undef __ | 5152 #undef __ |
5153 | 5153 |
5154 } // namespace internal | 5154 } // namespace internal |
5155 } // namespace v8 | 5155 } // namespace v8 |
5156 | 5156 |
5157 #endif // V8_TARGET_ARCH_IA32 | 5157 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |