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 3465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3476 __ SmiUntag(caller_args_count_reg); | 3476 __ SmiUntag(caller_args_count_reg); |
3477 __ jmp(&formal_parameter_count_loaded, Label::kNear); | 3477 __ jmp(&formal_parameter_count_loaded, Label::kNear); |
3478 | 3478 |
3479 __ bind(&no_arguments_adaptor); | 3479 __ bind(&no_arguments_adaptor); |
3480 // Load caller's formal parameter count. | 3480 // Load caller's formal parameter count. |
3481 __ mov(caller_args_count_reg, | 3481 __ mov(caller_args_count_reg, |
3482 Immediate(info()->literal()->parameter_count())); | 3482 Immediate(info()->literal()->parameter_count())); |
3483 | 3483 |
3484 __ bind(&formal_parameter_count_loaded); | 3484 __ bind(&formal_parameter_count_loaded); |
3485 __ PrepareForTailCall(actual, caller_args_count_reg, scratch2, scratch3, | 3485 __ PrepareForTailCall(actual, caller_args_count_reg, scratch2, scratch3, |
3486 ReturnAddressState::kNotOnStack); | 3486 ReturnAddressState::kNotOnStack, 0); |
3487 Comment(";;; }"); | 3487 Comment(";;; }"); |
3488 } | 3488 } |
3489 | 3489 |
3490 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { | 3490 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { |
3491 HInvokeFunction* hinstr = instr->hydrogen(); | 3491 HInvokeFunction* hinstr = instr->hydrogen(); |
3492 DCHECK(ToRegister(instr->context()).is(esi)); | 3492 DCHECK(ToRegister(instr->context()).is(esi)); |
3493 DCHECK(ToRegister(instr->function()).is(edi)); | 3493 DCHECK(ToRegister(instr->function()).is(edi)); |
3494 DCHECK(instr->HasPointerMap()); | 3494 DCHECK(instr->HasPointerMap()); |
3495 | 3495 |
3496 bool is_tail_call = hinstr->tail_call_mode() == TailCallMode::kAllow; | 3496 bool is_tail_call = hinstr->tail_call_mode() == TailCallMode::kAllow; |
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5284 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); | 5284 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); |
5285 } | 5285 } |
5286 | 5286 |
5287 | 5287 |
5288 #undef __ | 5288 #undef __ |
5289 | 5289 |
5290 } // namespace internal | 5290 } // namespace internal |
5291 } // namespace v8 | 5291 } // namespace v8 |
5292 | 5292 |
5293 #endif // V8_TARGET_ARCH_IA32 | 5293 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |