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

Unified Diff: src/arm64/macro-assembler-arm64.cc

Issue 2161153002: [ic] Fix megamorphic stub cache probing on some platforms. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 4 years, 5 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 | « no previous file | src/ic/arm/stub-cache-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm64/macro-assembler-arm64.cc
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc
index e7e1fb8931eea51ea7eadca1199b5908fee2f417..f674dd53e785e0d34db3f7f7c9cba8fda9f607ef 100644
--- a/src/arm64/macro-assembler-arm64.cc
+++ b/src/arm64/macro-assembler-arm64.cc
@@ -2955,7 +2955,7 @@ void MacroAssembler::SetCounter(StatsCounter* counter, int value,
if (FLAG_native_code_counters && counter->Enabled()) {
Mov(scratch1, value);
Mov(scratch2, ExternalReference(counter));
- Str(scratch1, MemOperand(scratch2));
+ Str(scratch1.W(), MemOperand(scratch2));
}
}
@@ -2965,9 +2965,9 @@ void MacroAssembler::IncrementCounter(StatsCounter* counter, int value,
DCHECK(value != 0);
if (FLAG_native_code_counters && counter->Enabled()) {
Mov(scratch2, ExternalReference(counter));
- Ldr(scratch1, MemOperand(scratch2));
- Add(scratch1, scratch1, value);
- Str(scratch1, MemOperand(scratch2));
+ Ldr(scratch1.W(), MemOperand(scratch2));
+ Add(scratch1.W(), scratch1.W(), value);
+ Str(scratch1.W(), MemOperand(scratch2));
}
}
« no previous file with comments | « no previous file | src/ic/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698