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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" | 7 #include "src/crankshaft/x64/lithium-codegen-x64.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 3139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3150 // If there is no frame, the context must be in rsi. | 3150 // If there is no frame, the context must be in rsi. |
3151 DCHECK(result.is(rsi)); | 3151 DCHECK(result.is(rsi)); |
3152 } | 3152 } |
3153 } | 3153 } |
3154 | 3154 |
3155 | 3155 |
3156 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3156 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
3157 DCHECK(ToRegister(instr->context()).is(rsi)); | 3157 DCHECK(ToRegister(instr->context()).is(rsi)); |
3158 __ Push(instr->hydrogen()->pairs()); | 3158 __ Push(instr->hydrogen()->pairs()); |
3159 __ Push(Smi::FromInt(instr->hydrogen()->flags())); | 3159 __ Push(Smi::FromInt(instr->hydrogen()->flags())); |
| 3160 __ Push(instr->hydrogen()->feedback_vector()); |
3160 CallRuntime(Runtime::kDeclareGlobals, instr); | 3161 CallRuntime(Runtime::kDeclareGlobals, instr); |
3161 } | 3162 } |
3162 | 3163 |
3163 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3164 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
3164 int formal_parameter_count, int arity, | 3165 int formal_parameter_count, int arity, |
3165 bool is_tail_call, LInstruction* instr) { | 3166 bool is_tail_call, LInstruction* instr) { |
3166 bool dont_adapt_arguments = | 3167 bool dont_adapt_arguments = |
3167 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 3168 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
3168 bool can_invoke_directly = | 3169 bool can_invoke_directly = |
3169 dont_adapt_arguments || formal_parameter_count == arity; | 3170 dont_adapt_arguments || formal_parameter_count == arity; |
(...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5585 __ bind(deferred->exit()); | 5586 __ bind(deferred->exit()); |
5586 __ bind(&done); | 5587 __ bind(&done); |
5587 } | 5588 } |
5588 | 5589 |
5589 #undef __ | 5590 #undef __ |
5590 | 5591 |
5591 } // namespace internal | 5592 } // namespace internal |
5592 } // namespace v8 | 5593 } // namespace v8 |
5593 | 5594 |
5594 #endif // V8_TARGET_ARCH_X64 | 5595 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |