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/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2575 // Load the arguments. | 2575 // Load the arguments. |
2576 ZoneList<Expression*>* args = expr->arguments(); | 2576 ZoneList<Expression*>* args = expr->arguments(); |
2577 int arg_count = args->length(); | 2577 int arg_count = args->length(); |
2578 for (int i = 0; i < arg_count; i++) { | 2578 for (int i = 0; i < arg_count; i++) { |
2579 VisitForStackValue(args->at(i)); | 2579 VisitForStackValue(args->at(i)); |
2580 } | 2580 } |
2581 | 2581 |
2582 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); | 2582 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); |
2583 SetCallPosition(expr); | 2583 SetCallPosition(expr); |
2584 | 2584 |
2585 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, mode).code(); | 2585 Handle<Code> ic = |
| 2586 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) |
| 2587 .code(); |
2586 __ Mov(x3, SmiFromSlot(expr->CallFeedbackICSlot())); | 2588 __ Mov(x3, SmiFromSlot(expr->CallFeedbackICSlot())); |
2587 __ Peek(x1, (arg_count + 1) * kXRegSize); | 2589 __ Peek(x1, (arg_count + 1) * kXRegSize); |
2588 // Don't assign a type feedback id to the IC, since type feedback is provided | 2590 // Don't assign a type feedback id to the IC, since type feedback is provided |
2589 // by the vector above. | 2591 // by the vector above. |
2590 CallIC(ic); | 2592 CallIC(ic); |
2591 | 2593 |
2592 RecordJSReturnSite(expr); | 2594 RecordJSReturnSite(expr); |
2593 // Restore context register. | 2595 // Restore context register. |
2594 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2596 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
2595 context()->DropAndPlug(1, x0); | 2597 context()->DropAndPlug(1, x0); |
(...skipping 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4836 } | 4838 } |
4837 | 4839 |
4838 return INTERRUPT; | 4840 return INTERRUPT; |
4839 } | 4841 } |
4840 | 4842 |
4841 | 4843 |
4842 } // namespace internal | 4844 } // namespace internal |
4843 } // namespace v8 | 4845 } // namespace v8 |
4844 | 4846 |
4845 #endif // V8_TARGET_ARCH_ARM64 | 4847 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |