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 #if V8_TARGET_ARCH_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2469 Jump(code); | 2469 Jump(code); |
2470 } | 2470 } |
2471 } | 2471 } |
2472 | 2472 |
2473 // Continue here if InvokePrologue does handle the invocation due to | 2473 // Continue here if InvokePrologue does handle the invocation due to |
2474 // mismatched parameter counts. | 2474 // mismatched parameter counts. |
2475 Bind(&done); | 2475 Bind(&done); |
2476 } | 2476 } |
2477 | 2477 |
2478 | 2478 |
2479 void MacroAssembler::InvokeFunction(Register function, | 2479 void MacroAssembler::InvokeFunction(Register function, Register new_target, |
2480 Register new_target, | |
2481 const ParameterCount& actual, | 2480 const ParameterCount& actual, |
2482 InvokeFlag flag, | 2481 InvokeFlag flag, |
2483 const CallWrapper& call_wrapper) { | 2482 const CallWrapper& call_wrapper) { |
2484 // You can't call a function without a valid frame. | 2483 // You can't call a function without a valid frame. |
2485 DCHECK(flag == JUMP_FUNCTION || has_frame()); | 2484 DCHECK(flag == JUMP_FUNCTION || has_frame()); |
2486 | 2485 |
2487 // Contract with called JS functions requires that function is passed in x1. | 2486 // Contract with called JS functions requires that function is passed in x1. |
2488 // (See FullCodeGenerator::Generate().) | 2487 // (See FullCodeGenerator::Generate().) |
2489 DCHECK(function.is(x1)); | 2488 DCHECK(function.is(x1)); |
2490 | 2489 |
(...skipping 2440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4931 } | 4930 } |
4932 | 4931 |
4933 | 4932 |
4934 #undef __ | 4933 #undef __ |
4935 | 4934 |
4936 | 4935 |
4937 } // namespace internal | 4936 } // namespace internal |
4938 } // namespace v8 | 4937 } // namespace v8 |
4939 | 4938 |
4940 #endif // V8_TARGET_ARCH_ARM64 | 4939 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |