| 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 3813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3824 __ SmiUntag(caller_args_count_reg); | 3824 __ SmiUntag(caller_args_count_reg); |
| 3825 __ jmp(&formal_parameter_count_loaded, Label::kNear); | 3825 __ jmp(&formal_parameter_count_loaded, Label::kNear); |
| 3826 | 3826 |
| 3827 __ bind(&no_arguments_adaptor); | 3827 __ bind(&no_arguments_adaptor); |
| 3828 // Load caller's formal parameter count. | 3828 // Load caller's formal parameter count. |
| 3829 __ mov(caller_args_count_reg, | 3829 __ mov(caller_args_count_reg, |
| 3830 Immediate(info()->literal()->parameter_count())); | 3830 Immediate(info()->literal()->parameter_count())); |
| 3831 | 3831 |
| 3832 __ bind(&formal_parameter_count_loaded); | 3832 __ bind(&formal_parameter_count_loaded); |
| 3833 __ PrepareForTailCall(actual, caller_args_count_reg, scratch2, scratch3, | 3833 __ PrepareForTailCall(actual, caller_args_count_reg, scratch2, scratch3, |
| 3834 ReturnAddressState::kNotOnStack); | 3834 ReturnAddressState::kNotOnStack, 0); |
| 3835 Comment(";;; }"); | 3835 Comment(";;; }"); |
| 3836 } | 3836 } |
| 3837 | 3837 |
| 3838 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { | 3838 void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { |
| 3839 HInvokeFunction* hinstr = instr->hydrogen(); | 3839 HInvokeFunction* hinstr = instr->hydrogen(); |
| 3840 DCHECK(ToRegister(instr->context()).is(esi)); | 3840 DCHECK(ToRegister(instr->context()).is(esi)); |
| 3841 DCHECK(ToRegister(instr->function()).is(edi)); | 3841 DCHECK(ToRegister(instr->function()).is(edi)); |
| 3842 DCHECK(instr->HasPointerMap()); | 3842 DCHECK(instr->HasPointerMap()); |
| 3843 | 3843 |
| 3844 bool is_tail_call = hinstr->tail_call_mode() == TailCallMode::kAllow; | 3844 bool is_tail_call = hinstr->tail_call_mode() == TailCallMode::kAllow; |
| (...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5840 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); | 5840 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); |
| 5841 } | 5841 } |
| 5842 | 5842 |
| 5843 | 5843 |
| 5844 #undef __ | 5844 #undef __ |
| 5845 | 5845 |
| 5846 } // namespace internal | 5846 } // namespace internal |
| 5847 } // namespace v8 | 5847 } // namespace v8 |
| 5848 | 5848 |
| 5849 #endif // V8_TARGET_ARCH_X87 | 5849 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |