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/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1902 FieldOperand(scratch1, JSFunction::kSharedFunctionInfoOffset)); | 1902 FieldOperand(scratch1, JSFunction::kSharedFunctionInfoOffset)); |
1903 __ mov( | 1903 __ mov( |
1904 caller_args_count_reg, | 1904 caller_args_count_reg, |
1905 FieldOperand(scratch1, SharedFunctionInfo::kFormalParameterCountOffset)); | 1905 FieldOperand(scratch1, SharedFunctionInfo::kFormalParameterCountOffset)); |
1906 __ SmiUntag(caller_args_count_reg); | 1906 __ SmiUntag(caller_args_count_reg); |
1907 | 1907 |
1908 __ bind(&formal_parameter_count_loaded); | 1908 __ bind(&formal_parameter_count_loaded); |
1909 | 1909 |
1910 ParameterCount callee_args_count(args_reg); | 1910 ParameterCount callee_args_count(args_reg); |
1911 __ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2, | 1911 __ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2, |
1912 scratch3, ReturnAddressState::kOnStack); | 1912 scratch3, ReturnAddressState::kOnStack, 0); |
1913 __ bind(&done); | 1913 __ bind(&done); |
1914 } | 1914 } |
1915 } // namespace | 1915 } // namespace |
1916 | 1916 |
1917 // static | 1917 // static |
1918 void Builtins::Generate_CallFunction(MacroAssembler* masm, | 1918 void Builtins::Generate_CallFunction(MacroAssembler* masm, |
1919 ConvertReceiverMode mode, | 1919 ConvertReceiverMode mode, |
1920 TailCallMode tail_call_mode) { | 1920 TailCallMode tail_call_mode) { |
1921 // ----------- S t a t e ------------- | 1921 // ----------- S t a t e ------------- |
1922 // -- eax : the number of arguments (not including the receiver) | 1922 // -- eax : the number of arguments (not including the receiver) |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2622 | 2622 |
2623 __ bind(&ok); | 2623 __ bind(&ok); |
2624 __ ret(0); | 2624 __ ret(0); |
2625 } | 2625 } |
2626 | 2626 |
2627 #undef __ | 2627 #undef __ |
2628 } // namespace internal | 2628 } // namespace internal |
2629 } // namespace v8 | 2629 } // namespace v8 |
2630 | 2630 |
2631 #endif // V8_TARGET_ARCH_IA32 | 2631 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |