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

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

Issue 2670843002: [stubs] Also port the CallICStub to CSA. (Closed)
Patch Set: Introduce FullCodeGenerator::IntFromSlot. 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/x64/full-codegen-x64.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 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::CallICTrampoline(isolate(), mode, expr->tail_call_mode()) 1916 CodeFactory::CallICTrampoline(isolate(), mode, expr->tail_call_mode())
1917 .code(); 1917 .code();
1918 __ li(a3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); 1918 __ li(a3, Operand(IntFromSlot(expr->CallFeedbackICSlot())));
1919 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 1919 __ ld(a1, MemOperand(sp, (arg_count + 1) * kPointerSize));
1920 __ li(a0, Operand(arg_count)); 1920 __ li(a0, Operand(arg_count));
1921 CallIC(code); 1921 CallIC(code);
1922 OperandStackDepthDecrement(arg_count + 1); 1922 OperandStackDepthDecrement(arg_count + 1);
1923 1923
1924 RecordJSReturnSite(expr); 1924 RecordJSReturnSite(expr);
1925 RestoreContext(); 1925 RestoreContext();
1926 context()->DropAndPlug(1, v0); 1926 context()->DropAndPlug(1, v0);
1927 } 1927 }
1928 1928
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
2878 reinterpret_cast<uint64_t>( 2878 reinterpret_cast<uint64_t>(
2879 isolate->builtins()->OnStackReplacement()->entry())); 2879 isolate->builtins()->OnStackReplacement()->entry()));
2880 return ON_STACK_REPLACEMENT; 2880 return ON_STACK_REPLACEMENT;
2881 } 2881 }
2882 2882
2883 2883
2884 } // namespace internal 2884 } // namespace internal
2885 } // namespace v8 2885 } // namespace v8
2886 2886
2887 #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/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698