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

Unified Diff: src/mips64/code-stubs-mips64.cc

Issue 2009603002: MIPS: Fix 'Collect call counts for constructor calls, too.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mips64/code-stubs-mips64.cc
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
index c0b8b694583c4b6cceedecd28ed0df3ca7285b78..3eee703dd6d7511dea3d334b55ac4eca425a33ff 100644
--- a/src/mips64/code-stubs-mips64.cc
+++ b/src/mips64/code-stubs-mips64.cc
@@ -1991,16 +1991,16 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
__ bind(&done_initialize_count);
// Initialize the call counter.
- __ dsrl(a4, a3, 32 - kPointerSizeLog2);
+ __ SmiScale(a4, a3, kPointerSizeLog2);
__ Daddu(a4, a2, Operand(a4));
__ li(a5, Operand(Smi::FromInt(1)));
+ __ Branch(USE_DELAY_SLOT, &done);
__ sd(a5, FieldMemOperand(a4, FixedArray::kHeaderSize + kPointerSize));
- __ bind(&done);
__ bind(&done_increment_count);
// Increment the call count for monomorphic function calls.
- __ dsrl(a4, a3, 32 - kPointerSizeLog2);
+ __ SmiScale(a4, a3, kPointerSizeLog2);
__ Daddu(a5, a2, Operand(a4));
__ ld(a4, FieldMemOperand(a5, FixedArray::kHeaderSize + kPointerSize));
__ Daddu(a4, a4, Operand(Smi::FromInt(1)));
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698