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 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2325 SetCallPosition(expr, expr->tail_call_mode()); | 2325 SetCallPosition(expr, expr->tail_call_mode()); |
2326 if (expr->tail_call_mode() == TailCallMode::kAllow) { | 2326 if (expr->tail_call_mode() == TailCallMode::kAllow) { |
2327 if (FLAG_trace) { | 2327 if (FLAG_trace) { |
2328 __ CallRuntime(Runtime::kTraceTailCall); | 2328 __ CallRuntime(Runtime::kTraceTailCall); |
2329 } | 2329 } |
2330 // Update profiling counters before the tail call since we will | 2330 // Update profiling counters before the tail call since we will |
2331 // not return to this function. | 2331 // not return to this function. |
2332 EmitProfilingCounterHandlingForReturnSequence(true); | 2332 EmitProfilingCounterHandlingForReturnSequence(true); |
2333 } | 2333 } |
2334 Handle<Code> code = | 2334 Handle<Code> code = |
2335 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) | 2335 CodeFactory::CallIC(isolate(), mode, expr->tail_call_mode()).code(); |
2336 .code(); | |
2337 __ LoadSmiLiteral(r5, SmiFromSlot(expr->CallFeedbackICSlot())); | 2336 __ LoadSmiLiteral(r5, SmiFromSlot(expr->CallFeedbackICSlot())); |
2338 __ LoadP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); | 2337 __ LoadP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); |
| 2338 __ mov(r2, Operand(arg_count)); |
2339 __ Call(code, RelocInfo::CODE_TARGET); | 2339 __ Call(code, RelocInfo::CODE_TARGET); |
2340 OperandStackDepthDecrement(arg_count + 1); | 2340 OperandStackDepthDecrement(arg_count + 1); |
2341 | 2341 |
2342 RecordJSReturnSite(expr); | 2342 RecordJSReturnSite(expr); |
2343 RestoreContext(); | 2343 RestoreContext(); |
2344 context()->DropAndPlug(1, r2); | 2344 context()->DropAndPlug(1, r2); |
2345 } | 2345 } |
2346 | 2346 |
2347 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) { | 2347 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) { |
2348 int arg_count = expr->arguments()->length(); | 2348 int arg_count = expr->arguments()->length(); |
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3569 DCHECK(kOSRBranchInstruction == br_instr); | 3569 DCHECK(kOSRBranchInstruction == br_instr); |
3570 | 3570 |
3571 DCHECK(interrupt_address == | 3571 DCHECK(interrupt_address == |
3572 isolate->builtins()->OnStackReplacement()->entry()); | 3572 isolate->builtins()->OnStackReplacement()->entry()); |
3573 return ON_STACK_REPLACEMENT; | 3573 return ON_STACK_REPLACEMENT; |
3574 } | 3574 } |
3575 | 3575 |
3576 } // namespace internal | 3576 } // namespace internal |
3577 } // namespace v8 | 3577 } // namespace v8 |
3578 #endif // V8_TARGET_ARCH_S390 | 3578 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |