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

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

Issue 2670073002: [stubs] Fix naming of CallIC and CallICTrampoline. (Closed)
Patch Set: 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 | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 SetCallPosition(expr, expr->tail_call_mode()); 1906 SetCallPosition(expr, expr->tail_call_mode());
1907 if (expr->tail_call_mode() == TailCallMode::kAllow) { 1907 if (expr->tail_call_mode() == TailCallMode::kAllow) {
1908 if (FLAG_trace) { 1908 if (FLAG_trace) {
1909 __ CallRuntime(Runtime::kTraceTailCall); 1909 __ CallRuntime(Runtime::kTraceTailCall);
1910 } 1910 }
1911 // Update profiling counters before the tail call since we will 1911 // Update profiling counters before the tail call since we will
1912 // not return to this function. 1912 // not return to this function.
1913 EmitProfilingCounterHandlingForReturnSequence(true); 1913 EmitProfilingCounterHandlingForReturnSequence(true);
1914 } 1914 }
1915 Handle<Code> code = 1915 Handle<Code> code =
1916 CodeFactory::CallIC(isolate(), mode, expr->tail_call_mode()).code(); 1916 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode())
1917 .code();
1917 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); 1918 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackICSlot())));
1918 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 1919 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
1919 __ li(a0, Operand(arg_count)); 1920 __ li(a0, Operand(arg_count));
1920 CallIC(code); 1921 CallIC(code);
1921 OperandStackDepthDecrement(arg_count + 1); 1922 OperandStackDepthDecrement(arg_count + 1);
1922 1923
1923 RecordJSReturnSite(expr); 1924 RecordJSReturnSite(expr);
1924 RestoreContext(); 1925 RestoreContext();
1925 context()->DropAndPlug(1, v0); 1926 context()->DropAndPlug(1, v0);
1926 } 1927 }
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
2877 reinterpret_cast<uint64_t>( 2878 reinterpret_cast<uint64_t>(
2878 isolate->builtins()->OnStackReplacement()->entry())); 2879 isolate->builtins()->OnStackReplacement()->entry()));
2879 return ON_STACK_REPLACEMENT; 2880 return ON_STACK_REPLACEMENT;
2880 } 2881 }
2881 2882
2882 2883
2883 } // namespace internal 2884 } // namespace internal
2884 } // namespace v8 2885 } // namespace v8
2885 2886
2886 #endif // V8_TARGET_ARCH_MIPS64 2887 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698