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 2313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2324 PrepareForBailoutForId(expr->CallId(), BailoutState::NO_REGISTERS); | 2324 PrepareForBailoutForId(expr->CallId(), BailoutState::NO_REGISTERS); |
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> ic = | 2334 Handle<Code> code = |
2335 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) | 2335 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) |
2336 .code(); | 2336 .code(); |
2337 __ LoadSmiLiteral(r5, SmiFromSlot(expr->CallFeedbackICSlot())); | 2337 __ LoadSmiLiteral(r5, SmiFromSlot(expr->CallFeedbackICSlot())); |
2338 __ LoadP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); | 2338 __ LoadP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); |
2339 // Don't assign a type feedback id to the IC, since type feedback is provided | 2339 __ Call(code, RelocInfo::CODE_TARGET); |
2340 // by the vector above. | |
2341 CallIC(ic); | |
2342 OperandStackDepthDecrement(arg_count + 1); | 2340 OperandStackDepthDecrement(arg_count + 1); |
2343 | 2341 |
2344 RecordJSReturnSite(expr); | 2342 RecordJSReturnSite(expr); |
2345 RestoreContext(); | 2343 RestoreContext(); |
2346 context()->DropAndPlug(1, r2); | 2344 context()->DropAndPlug(1, r2); |
2347 } | 2345 } |
2348 | 2346 |
2349 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) { | 2347 void FullCodeGenerator::EmitResolvePossiblyDirectEval(Call* expr) { |
2350 int arg_count = expr->arguments()->length(); | 2348 int arg_count = expr->arguments()->length(); |
2351 // r6: copy of the first argument or undefined if it doesn't exist. | 2349 // r6: copy of the first argument or undefined if it doesn't exist. |
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3571 DCHECK(kOSRBranchInstruction == br_instr); | 3569 DCHECK(kOSRBranchInstruction == br_instr); |
3572 | 3570 |
3573 DCHECK(interrupt_address == | 3571 DCHECK(interrupt_address == |
3574 isolate->builtins()->OnStackReplacement()->entry()); | 3572 isolate->builtins()->OnStackReplacement()->entry()); |
3575 return ON_STACK_REPLACEMENT; | 3573 return ON_STACK_REPLACEMENT; |
3576 } | 3574 } |
3577 | 3575 |
3578 } // namespace internal | 3576 } // namespace internal |
3579 } // namespace v8 | 3577 } // namespace v8 |
3580 #endif // V8_TARGET_ARCH_S390 | 3578 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |