Chromium Code Reviews| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 929 __ SmiToInteger64(rcx, rcx); | 929 __ SmiToInteger64(rcx, rcx); |
| 930 __ jmp(&try_allocate); | 930 __ jmp(&try_allocate); |
| 931 | 931 |
| 932 // Patch the arguments.length and the parameters pointer. | 932 // Patch the arguments.length and the parameters pointer. |
| 933 __ bind(&adaptor_frame); | 933 __ bind(&adaptor_frame); |
| 934 __ movp(rcx, Operand(rdx, ArgumentsAdaptorFrameConstants::kLengthOffset)); | 934 __ movp(rcx, Operand(rdx, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
| 935 | 935 |
| 936 if (has_new_target()) { | 936 if (has_new_target()) { |
| 937 // Subtract 1 from smi-tagged arguments count. | 937 // Subtract 1 from smi-tagged arguments count. |
| 938 __ SmiToInteger32(rcx, rcx); | 938 __ SmiToInteger32(rcx, rcx); |
| 939 __ decp(rcx); | 939 __ decl(rcx); |
|
arv (Not doing code reviews)
2015/02/11 16:41:45
How is this related to this CL?
Dmitry Lomov (no reviews)
2015/02/11 16:49:57
Not really, just a sanity fix.
| |
| 940 __ Integer32ToSmi(rcx, rcx); | 940 __ Integer32ToSmi(rcx, rcx); |
| 941 } | 941 } |
| 942 __ movp(args.GetArgumentOperand(2), rcx); | 942 __ movp(args.GetArgumentOperand(2), rcx); |
| 943 __ SmiToInteger64(rcx, rcx); | 943 __ SmiToInteger64(rcx, rcx); |
| 944 __ leap(rdx, Operand(rdx, rcx, times_pointer_size, | 944 __ leap(rdx, Operand(rdx, rcx, times_pointer_size, |
| 945 StandardFrameConstants::kCallerSPOffset)); | 945 StandardFrameConstants::kCallerSPOffset)); |
| 946 __ movp(args.GetArgumentOperand(1), rdx); | 946 __ movp(args.GetArgumentOperand(1), rdx); |
| 947 | 947 |
| 948 // Try the new space allocation. Start out with computing the size of | 948 // Try the new space allocation. Start out with computing the size of |
| 949 // the arguments object and the elements array. | 949 // the arguments object and the elements array. |
| (...skipping 4119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5069 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, | 5069 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, |
| 5070 kStackSpace, nullptr, return_value_operand, NULL); | 5070 kStackSpace, nullptr, return_value_operand, NULL); |
| 5071 } | 5071 } |
| 5072 | 5072 |
| 5073 | 5073 |
| 5074 #undef __ | 5074 #undef __ |
| 5075 | 5075 |
| 5076 } } // namespace v8::internal | 5076 } } // namespace v8::internal |
| 5077 | 5077 |
| 5078 #endif // V8_TARGET_ARCH_X64 | 5078 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |