Chromium Code Reviews| 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/ast/compile-time-value.h" | 7 #include "src/ast/compile-time-value.h" |
| 8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
| 9 #include "src/builtins/builtins-constructor.h" | 9 #include "src/builtins/builtins-constructor.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1853 if (FLAG_trace) { | 1853 if (FLAG_trace) { |
| 1854 __ CallRuntime(Runtime::kTraceTailCall); | 1854 __ CallRuntime(Runtime::kTraceTailCall); |
| 1855 } | 1855 } |
| 1856 // Update profiling counters before the tail call since we will | 1856 // Update profiling counters before the tail call since we will |
| 1857 // not return to this function. | 1857 // not return to this function. |
| 1858 EmitProfilingCounterHandlingForReturnSequence(true); | 1858 EmitProfilingCounterHandlingForReturnSequence(true); |
| 1859 } | 1859 } |
| 1860 Handle<Code> code = | 1860 Handle<Code> code = |
| 1861 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) | 1861 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) |
| 1862 .code(); | 1862 .code(); |
| 1863 __ LoadSmiLiteral(r5, SmiFromSlot(expr->CallFeedbackICSlot())); | 1863 __ mov(r5, Operand(IntFromSlot(expr->CallFeedbackICSlot()))); |
|
john.yan
2017/02/02 16:02:17
using Load() is better.
| |
| 1864 __ LoadP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); | 1864 __ LoadP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); |
| 1865 __ mov(r2, Operand(arg_count)); | 1865 __ mov(r2, Operand(arg_count)); |
| 1866 CallIC(code); | 1866 CallIC(code); |
| 1867 OperandStackDepthDecrement(arg_count + 1); | 1867 OperandStackDepthDecrement(arg_count + 1); |
| 1868 | 1868 |
| 1869 RecordJSReturnSite(expr); | 1869 RecordJSReturnSite(expr); |
| 1870 RestoreContext(); | 1870 RestoreContext(); |
| 1871 context()->DropAndPlug(1, r2); | 1871 context()->DropAndPlug(1, r2); |
| 1872 } | 1872 } |
| 1873 | 1873 |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2785 USE(kOSRBranchInstruction); | 2785 USE(kOSRBranchInstruction); |
| 2786 DCHECK(kOSRBranchInstruction == br_instr); | 2786 DCHECK(kOSRBranchInstruction == br_instr); |
| 2787 | 2787 |
| 2788 DCHECK(interrupt_address == | 2788 DCHECK(interrupt_address == |
| 2789 isolate->builtins()->OnStackReplacement()->entry()); | 2789 isolate->builtins()->OnStackReplacement()->entry()); |
| 2790 return ON_STACK_REPLACEMENT; | 2790 return ON_STACK_REPLACEMENT; |
| 2791 } | 2791 } |
| 2792 } // namespace internal | 2792 } // namespace internal |
| 2793 } // namespace v8 | 2793 } // namespace v8 |
| 2794 #endif // V8_TARGET_ARCH_S390 | 2794 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |