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 3220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3231 // If there is no frame, the context must be in esi. | 3231 // If there is no frame, the context must be in esi. |
3232 DCHECK(result.is(esi)); | 3232 DCHECK(result.is(esi)); |
3233 } | 3233 } |
3234 } | 3234 } |
3235 | 3235 |
3236 | 3236 |
3237 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3237 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
3238 DCHECK(ToRegister(instr->context()).is(esi)); | 3238 DCHECK(ToRegister(instr->context()).is(esi)); |
3239 __ push(Immediate(instr->hydrogen()->pairs())); | 3239 __ push(Immediate(instr->hydrogen()->pairs())); |
3240 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); | 3240 __ push(Immediate(Smi::FromInt(instr->hydrogen()->flags()))); |
| 3241 __ push(Immediate(instr->hydrogen()->feedback_vector())); |
3241 CallRuntime(Runtime::kDeclareGlobals, instr); | 3242 CallRuntime(Runtime::kDeclareGlobals, instr); |
3242 } | 3243 } |
3243 | 3244 |
3244 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3245 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
3245 int formal_parameter_count, int arity, | 3246 int formal_parameter_count, int arity, |
3246 bool is_tail_call, LInstruction* instr) { | 3247 bool is_tail_call, LInstruction* instr) { |
3247 bool dont_adapt_arguments = | 3248 bool dont_adapt_arguments = |
3248 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 3249 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
3249 bool can_invoke_directly = | 3250 bool can_invoke_directly = |
3250 dont_adapt_arguments || formal_parameter_count == arity; | 3251 dont_adapt_arguments || formal_parameter_count == arity; |
(...skipping 2542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5793 __ bind(deferred->exit()); | 5794 __ bind(deferred->exit()); |
5794 __ bind(&done); | 5795 __ bind(&done); |
5795 } | 5796 } |
5796 | 5797 |
5797 #undef __ | 5798 #undef __ |
5798 | 5799 |
5799 } // namespace internal | 5800 } // namespace internal |
5800 } // namespace v8 | 5801 } // namespace v8 |
5801 | 5802 |
5802 #endif // V8_TARGET_ARCH_X87 | 5803 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |