| 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/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 1917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1928 FieldOperand(scratch1, JSFunction::kSharedFunctionInfoOffset)); | 1928 FieldOperand(scratch1, JSFunction::kSharedFunctionInfoOffset)); |
| 1929 __ mov( | 1929 __ mov( |
| 1930 caller_args_count_reg, | 1930 caller_args_count_reg, |
| 1931 FieldOperand(scratch1, SharedFunctionInfo::kFormalParameterCountOffset)); | 1931 FieldOperand(scratch1, SharedFunctionInfo::kFormalParameterCountOffset)); |
| 1932 __ SmiUntag(caller_args_count_reg); | 1932 __ SmiUntag(caller_args_count_reg); |
| 1933 | 1933 |
| 1934 __ bind(&formal_parameter_count_loaded); | 1934 __ bind(&formal_parameter_count_loaded); |
| 1935 | 1935 |
| 1936 ParameterCount callee_args_count(args_reg); | 1936 ParameterCount callee_args_count(args_reg); |
| 1937 __ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2, | 1937 __ PrepareForTailCall(callee_args_count, caller_args_count_reg, scratch2, |
| 1938 scratch3, ReturnAddressState::kOnStack); | 1938 scratch3, ReturnAddressState::kOnStack, 0); |
| 1939 __ bind(&done); | 1939 __ bind(&done); |
| 1940 } | 1940 } |
| 1941 } // namespace | 1941 } // namespace |
| 1942 | 1942 |
| 1943 // static | 1943 // static |
| 1944 void Builtins::Generate_CallFunction(MacroAssembler* masm, | 1944 void Builtins::Generate_CallFunction(MacroAssembler* masm, |
| 1945 ConvertReceiverMode mode, | 1945 ConvertReceiverMode mode, |
| 1946 TailCallMode tail_call_mode) { | 1946 TailCallMode tail_call_mode) { |
| 1947 // ----------- S t a t e ------------- | 1947 // ----------- S t a t e ------------- |
| 1948 // -- eax : the number of arguments (not including the receiver) | 1948 // -- eax : the number of arguments (not including the receiver) |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2630 // And "return" to the OSR entry point of the function. | 2630 // And "return" to the OSR entry point of the function. |
| 2631 __ ret(0); | 2631 __ ret(0); |
| 2632 } | 2632 } |
| 2633 | 2633 |
| 2634 | 2634 |
| 2635 #undef __ | 2635 #undef __ |
| 2636 } // namespace internal | 2636 } // namespace internal |
| 2637 } // namespace v8 | 2637 } // namespace v8 |
| 2638 | 2638 |
| 2639 #endif // V8_TARGET_ARCH_X87 | 2639 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |