Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 2670003003: PPC/s390: [stubs] Also port the CallICStub to CSA. (Closed)
Patch Set: fix mov instr Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 if (FLAG_trace) { 1898 if (FLAG_trace) {
1899 __ CallRuntime(Runtime::kTraceTailCall); 1899 __ CallRuntime(Runtime::kTraceTailCall);
1900 } 1900 }
1901 // Update profiling counters before the tail call since we will 1901 // Update profiling counters before the tail call since we will
1902 // not return to this function. 1902 // not return to this function.
1903 EmitProfilingCounterHandlingForReturnSequence(true); 1903 EmitProfilingCounterHandlingForReturnSequence(true);
1904 } 1904 }
1905 Handle<Code> code = 1905 Handle<Code> code =
1906 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) 1906 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode())
1907 .code(); 1907 .code();
1908 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallFeedbackICSlot())); 1908 __ mov(r6, Operand(IntFromSlot(expr->CallFeedbackICSlot())));
1909 __ LoadP(r4, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); 1909 __ LoadP(r4, MemOperand(sp, (arg_count + 1) * kPointerSize), r0);
1910 __ mov(r3, Operand(arg_count)); 1910 __ mov(r3, Operand(arg_count));
1911 CallIC(code); 1911 CallIC(code);
1912 OperandStackDepthDecrement(arg_count + 1); 1912 OperandStackDepthDecrement(arg_count + 1);
1913 1913
1914 RecordJSReturnSite(expr); 1914 RecordJSReturnSite(expr);
1915 RestoreContext(); 1915 RestoreContext();
1916 context()->DropAndPlug(1, r3); 1916 context()->DropAndPlug(1, r3);
1917 } 1917 }
1918 1918
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
2848 2848
2849 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 2849 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
2850 2850
2851 DCHECK(interrupt_address == 2851 DCHECK(interrupt_address ==
2852 isolate->builtins()->OnStackReplacement()->entry()); 2852 isolate->builtins()->OnStackReplacement()->entry());
2853 return ON_STACK_REPLACEMENT; 2853 return ON_STACK_REPLACEMENT;
2854 } 2854 }
2855 } // namespace internal 2855 } // namespace internal
2856 } // namespace v8 2856 } // namespace v8
2857 #endif // V8_TARGET_ARCH_PPC 2857 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698