OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 7 #if V8_TARGET_ARCH_PPC |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/debug.h" | 10 #include "src/debug.h" |
(...skipping 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 | 1390 |
1391 __ bind(&non_proxy); | 1391 __ bind(&non_proxy); |
1392 __ GetBuiltinFunction(r4, Builtins::CALL_NON_FUNCTION); | 1392 __ GetBuiltinFunction(r4, Builtins::CALL_NON_FUNCTION); |
1393 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 1393 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
1394 RelocInfo::CODE_TARGET); | 1394 RelocInfo::CODE_TARGET); |
1395 __ bind(&function); | 1395 __ bind(&function); |
1396 } | 1396 } |
1397 | 1397 |
1398 // 5b. Get the code to call from the function and check that the number of | 1398 // 5b. Get the code to call from the function and check that the number of |
1399 // expected arguments matches what we're providing. If so, jump | 1399 // expected arguments matches what we're providing. If so, jump |
1400 // (tail-call) to the code in register edx without checking arguments. | 1400 // (tail-call) to the code in register ip without checking arguments. |
1401 // r3: actual number of arguments | 1401 // r3: actual number of arguments |
1402 // r4: function | 1402 // r4: function |
1403 __ LoadP(r6, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); | 1403 __ LoadP(r6, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); |
1404 __ LoadWordArith( | 1404 __ LoadWordArith( |
1405 r5, FieldMemOperand(r6, SharedFunctionInfo::kFormalParameterCountOffset)); | 1405 r5, FieldMemOperand(r6, SharedFunctionInfo::kFormalParameterCountOffset)); |
1406 #if !V8_TARGET_ARCH_PPC64 | 1406 #if !V8_TARGET_ARCH_PPC64 |
1407 __ SmiUntag(r5); | 1407 __ SmiUntag(r5); |
1408 #endif | 1408 #endif |
1409 __ cmp(r5, r3); // Check formal and actual parameter counts. | 1409 __ cmp(r5, r3); // Check formal and actual parameter counts. |
1410 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 1410 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1875 __ bkpt(0); | 1875 __ bkpt(0); |
1876 } | 1876 } |
1877 } | 1877 } |
1878 | 1878 |
1879 | 1879 |
1880 #undef __ | 1880 #undef __ |
1881 } // namespace internal | 1881 } // namespace internal |
1882 } // namespace v8 | 1882 } // namespace v8 |
1883 | 1883 |
1884 #endif // V8_TARGET_ARCH_PPC | 1884 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |