| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2334 } | 2334 } |
| 2335 // Update profiling counters before the tail call since we will | 2335 // Update profiling counters before the tail call since we will |
| 2336 // not return to this function. | 2336 // not return to this function. |
| 2337 EmitProfilingCounterHandlingForReturnSequence(true); | 2337 EmitProfilingCounterHandlingForReturnSequence(true); |
| 2338 } | 2338 } |
| 2339 Handle<Code> code = | 2339 Handle<Code> code = |
| 2340 CodeFactory::CallIC(isolate(), mode, expr->tail_call_mode()).code(); | 2340 CodeFactory::CallIC(isolate(), mode, expr->tail_call_mode()).code(); |
| 2341 __ LoadSmiLiteral(r5, SmiFromSlot(expr->CallFeedbackICSlot())); | 2341 __ LoadSmiLiteral(r5, SmiFromSlot(expr->CallFeedbackICSlot())); |
| 2342 __ LoadP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); | 2342 __ LoadP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); |
| 2343 __ mov(r2, Operand(arg_count)); | 2343 __ mov(r2, Operand(arg_count)); |
| 2344 __ Call(code, RelocInfo::CODE_TARGET); | 2344 CallIC(code); |
| 2345 OperandStackDepthDecrement(arg_count + 1); | 2345 OperandStackDepthDecrement(arg_count + 1); |
| 2346 | 2346 |
| 2347 RecordJSReturnSite(expr); | 2347 RecordJSReturnSite(expr); |
| 2348 RestoreContext(); | 2348 RestoreContext(); |
| 2349 context()->DropAndPlug(1, r2); | 2349 context()->DropAndPlug(1, r2); |
| 2350 } | 2350 } |
| 2351 | 2351 |
| 2352 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) { | 2352 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) { |
| 2353 int arg_count = expr->arguments()->length(); | 2353 int arg_count = expr->arguments()->length(); |
| 2354 // r6: copy of the first argument or undefined if it doesn't exist. | 2354 // r6: copy of the first argument or undefined if it doesn't exist. |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2481 | 2481 |
| 2482 // Load function and argument count into r3 and r2. | 2482 // Load function and argument count into r3 and r2. |
| 2483 __ mov(r2, Operand(arg_count)); | 2483 __ mov(r2, Operand(arg_count)); |
| 2484 __ LoadP(r3, MemOperand(sp, arg_count * kPointerSize), r0); | 2484 __ LoadP(r3, MemOperand(sp, arg_count * kPointerSize), r0); |
| 2485 | 2485 |
| 2486 // Record call targets in unoptimized code. | 2486 // Record call targets in unoptimized code. |
| 2487 __ EmitLoadTypeFeedbackVector(r4); | 2487 __ EmitLoadTypeFeedbackVector(r4); |
| 2488 __ LoadSmiLiteral(r5, SmiFromSlot(expr->CallNewFeedbackSlot())); | 2488 __ LoadSmiLiteral(r5, SmiFromSlot(expr->CallNewFeedbackSlot())); |
| 2489 | 2489 |
| 2490 CallConstructStub stub(isolate()); | 2490 CallConstructStub stub(isolate()); |
| 2491 __ Call(stub.GetCode(), RelocInfo::CODE_TARGET); | 2491 CallIC(stub.GetCode()); |
| 2492 OperandStackDepthDecrement(arg_count + 1); | 2492 OperandStackDepthDecrement(arg_count + 1); |
| 2493 PrepareForBailoutForId(expr->ReturnId(), BailoutState::TOS_REGISTER); | 2493 PrepareForBailoutForId(expr->ReturnId(), BailoutState::TOS_REGISTER); |
| 2494 RestoreContext(); | 2494 RestoreContext(); |
| 2495 context()->Plug(r2); | 2495 context()->Plug(r2); |
| 2496 } | 2496 } |
| 2497 | 2497 |
| 2498 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { | 2498 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
| 2499 SuperCallReference* super_call_ref = | 2499 SuperCallReference* super_call_ref = |
| 2500 expr->expression()->AsSuperCallReference(); | 2500 expr->expression()->AsSuperCallReference(); |
| 2501 DCHECK_NOT_NULL(super_call_ref); | 2501 DCHECK_NOT_NULL(super_call_ref); |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3546 DCHECK(kOSRBranchInstruction == br_instr); | 3546 DCHECK(kOSRBranchInstruction == br_instr); |
| 3547 | 3547 |
| 3548 DCHECK(interrupt_address == | 3548 DCHECK(interrupt_address == |
| 3549 isolate->builtins()->OnStackReplacement()->entry()); | 3549 isolate->builtins()->OnStackReplacement()->entry()); |
| 3550 return ON_STACK_REPLACEMENT; | 3550 return ON_STACK_REPLACEMENT; |
| 3551 } | 3551 } |
| 3552 | 3552 |
| 3553 } // namespace internal | 3553 } // namespace internal |
| 3554 } // namespace v8 | 3554 } // namespace v8 |
| 3555 #endif // V8_TARGET_ARCH_S390 | 3555 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |