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 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2662 __ Poke(x0, (arg_count + 1) * kPointerSize); | 2662 __ Poke(x0, (arg_count + 1) * kPointerSize); |
2663 | 2663 |
2664 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); | 2664 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); |
2665 | 2665 |
2666 // Record source position for debugger. | 2666 // Record source position for debugger. |
2667 SetCallPosition(expr); | 2667 SetCallPosition(expr); |
2668 | 2668 |
2669 // Call the evaluated function. | 2669 // Call the evaluated function. |
2670 __ Peek(x1, (arg_count + 1) * kXRegSize); | 2670 __ Peek(x1, (arg_count + 1) * kXRegSize); |
2671 __ Mov(x0, arg_count); | 2671 __ Mov(x0, arg_count); |
2672 __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); | 2672 __ Call(isolate()->builtins()->Call(ConvertReceiverMode::kAny, |
| 2673 expr->tail_call_mode()), |
| 2674 RelocInfo::CODE_TARGET); |
2673 RecordJSReturnSite(expr); | 2675 RecordJSReturnSite(expr); |
2674 // Restore context register. | 2676 // Restore context register. |
2675 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 2677 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
2676 context()->DropAndPlug(1, x0); | 2678 context()->DropAndPlug(1, x0); |
2677 } | 2679 } |
2678 | 2680 |
2679 | 2681 |
2680 void FullCodeGenerator::VisitCallNew(CallNew* expr) { | 2682 void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
2681 Comment cmnt(masm_, "[ CallNew"); | 2683 Comment cmnt(masm_, "[ CallNew"); |
2682 // According to ECMA-262, section 11.2.2, page 44, the function | 2684 // According to ECMA-262, section 11.2.2, page 44, the function |
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4539 } | 4541 } |
4540 | 4542 |
4541 return INTERRUPT; | 4543 return INTERRUPT; |
4542 } | 4544 } |
4543 | 4545 |
4544 | 4546 |
4545 } // namespace internal | 4547 } // namespace internal |
4546 } // namespace v8 | 4548 } // namespace v8 |
4547 | 4549 |
4548 #endif // V8_TARGET_ARCH_ARM64 | 4550 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |