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/full-codegen/full-codegen.h" | 7 #include "src/full-codegen/full-codegen.h" |
8 #include "src/ast/compile-time-value.h" | 8 #include "src/ast/compile-time-value.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
(...skipping 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2389 | 2389 |
2390 // Touch up the stack with the resolved function. | 2390 // Touch up the stack with the resolved function. |
2391 __ Poke(x0, (arg_count + 1) * kPointerSize); | 2391 __ Poke(x0, (arg_count + 1) * kPointerSize); |
2392 | 2392 |
2393 PrepareForBailoutForId(expr->EvalId(), BailoutState::NO_REGISTERS); | 2393 PrepareForBailoutForId(expr->EvalId(), BailoutState::NO_REGISTERS); |
2394 | 2394 |
2395 // Record source position for debugger. | 2395 // Record source position for debugger. |
2396 SetCallPosition(expr); | 2396 SetCallPosition(expr); |
2397 | 2397 |
2398 // Call the evaluated function. | 2398 // Call the evaluated function. |
| 2399 Handle<Code> code = CodeFactory::CallIC(isolate(), ConvertReceiverMode::kAny, |
| 2400 expr->tail_call_mode()) |
| 2401 .code(); |
| 2402 __ Mov(x3, SmiFromSlot(expr->CallFeedbackICSlot())); |
2399 __ Peek(x1, (arg_count + 1) * kXRegSize); | 2403 __ Peek(x1, (arg_count + 1) * kXRegSize); |
2400 __ Mov(x0, arg_count); | 2404 __ Mov(x0, arg_count); |
2401 __ Call(isolate()->builtins()->Call(ConvertReceiverMode::kAny, | 2405 __ Call(code, RelocInfo::CODE_TARGET); |
2402 expr->tail_call_mode()), | |
2403 RelocInfo::CODE_TARGET); | |
2404 OperandStackDepthDecrement(arg_count + 1); | 2406 OperandStackDepthDecrement(arg_count + 1); |
2405 RecordJSReturnSite(expr); | 2407 RecordJSReturnSite(expr); |
2406 RestoreContext(); | 2408 RestoreContext(); |
2407 context()->DropAndPlug(1, x0); | 2409 context()->DropAndPlug(1, x0); |
2408 } | 2410 } |
2409 | 2411 |
2410 | 2412 |
2411 void FullCodeGenerator::VisitCallNew(CallNew* expr) { | 2413 void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
2412 Comment cmnt(masm_, "[ CallNew"); | 2414 Comment cmnt(masm_, "[ CallNew"); |
2413 // According to ECMA-262, section 11.2.2, page 44, the function | 2415 // According to ECMA-262, section 11.2.2, page 44, the function |
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3732 } | 3734 } |
3733 | 3735 |
3734 return INTERRUPT; | 3736 return INTERRUPT; |
3735 } | 3737 } |
3736 | 3738 |
3737 | 3739 |
3738 } // namespace internal | 3740 } // namespace internal |
3739 } // namespace v8 | 3741 } // namespace v8 |
3740 | 3742 |
3741 #endif // V8_TARGET_ARCH_ARM64 | 3743 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |