| 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 3044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3055 __ movp(result, Operand(rbp, StandardFrameConstants::kContextOffset)); | 3055 __ movp(result, Operand(rbp, StandardFrameConstants::kContextOffset)); |
| 3056 } else { | 3056 } else { |
| 3057 // If there is no frame, the context must be in rsi. | 3057 // If there is no frame, the context must be in rsi. |
| 3058 DCHECK(result.is(rsi)); | 3058 DCHECK(result.is(rsi)); |
| 3059 } | 3059 } |
| 3060 } | 3060 } |
| 3061 | 3061 |
| 3062 | 3062 |
| 3063 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { | 3063 void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
| 3064 DCHECK(ToRegister(instr->context()).is(rsi)); | 3064 DCHECK(ToRegister(instr->context()).is(rsi)); |
| 3065 __ Push(instr->hydrogen()->pairs()); | 3065 __ Push(instr->hydrogen()->declarations()); |
| 3066 __ Push(Smi::FromInt(instr->hydrogen()->flags())); | 3066 __ Push(Smi::FromInt(instr->hydrogen()->flags())); |
| 3067 __ Push(instr->hydrogen()->feedback_vector()); | 3067 __ Push(instr->hydrogen()->feedback_vector()); |
| 3068 CallRuntime(Runtime::kDeclareGlobals, instr); | 3068 CallRuntime(Runtime::kDeclareGlobals, instr); |
| 3069 } | 3069 } |
| 3070 | 3070 |
| 3071 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, | 3071 void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
| 3072 int formal_parameter_count, int arity, | 3072 int formal_parameter_count, int arity, |
| 3073 bool is_tail_call, LInstruction* instr) { | 3073 bool is_tail_call, LInstruction* instr) { |
| 3074 bool dont_adapt_arguments = | 3074 bool dont_adapt_arguments = |
| 3075 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; | 3075 formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
| (...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5429 __ bind(deferred->exit()); | 5429 __ bind(deferred->exit()); |
| 5430 __ bind(&done); | 5430 __ bind(&done); |
| 5431 } | 5431 } |
| 5432 | 5432 |
| 5433 #undef __ | 5433 #undef __ |
| 5434 | 5434 |
| 5435 } // namespace internal | 5435 } // namespace internal |
| 5436 } // namespace v8 | 5436 } // namespace v8 |
| 5437 | 5437 |
| 5438 #endif // V8_TARGET_ARCH_X64 | 5438 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |