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

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

Issue 1207323002: PPC64: Fix "[ic] Record call counts for monomorphic calls made with an IC." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ppc/code-stubs-ppc.cc
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc
index 2447cf9318bcc19f093f14d12375188a353c5232..e433a4bc471250bcffa066bc7a886e08d1cdbf5d 100644
--- a/src/ppc/code-stubs-ppc.cc
+++ b/src/ppc/code-stubs-ppc.cc
@@ -2897,7 +2897,7 @@ void CallIC_ArrayStub::Generate(MacroAssembler* masm) {
const int count_offset = FixedArray::kHeaderSize + kPointerSize;
__ LoadP(r6, FieldMemOperand(r9, count_offset));
__ AddSmiLiteral(r6, r6, Smi::FromInt(CallICNexus::kCallCountIncrement), r0);
- __ StoreP(r6, FieldMemOperand(r9, count_offset));
+ __ StoreP(r6, FieldMemOperand(r9, count_offset), r0);
__ mr(r5, r7);
__ mr(r6, r4);
@@ -2960,7 +2960,7 @@ void CallICStub::Generate(MacroAssembler* masm) {
const int count_offset = FixedArray::kHeaderSize + kPointerSize;
__ LoadP(r6, FieldMemOperand(r9, count_offset));
__ AddSmiLiteral(r6, r6, Smi::FromInt(CallICNexus::kCallCountIncrement), r0);
- __ StoreP(r6, FieldMemOperand(r9, count_offset));
+ __ StoreP(r6, FieldMemOperand(r9, count_offset), r0);
__ bind(&have_js_function);
if (CallAsMethod()) {
@@ -3037,8 +3037,8 @@ void CallICStub::Generate(MacroAssembler* masm) {
__ StoreP(r7, FieldMemOperand(r5, with_types_offset), r0);
// Initialize the call counter.
- __ LoadSmiLiteral(r0, Smi::FromInt(CallICNexus::kCallCountIncrement));
- __ StoreP(r0, FieldMemOperand(r9, count_offset));
+ __ LoadSmiLiteral(r8, Smi::FromInt(CallICNexus::kCallCountIncrement));
+ __ StoreP(r8, FieldMemOperand(r9, count_offset), r0);
// Store the function. Use a stub since we need a frame for allocation.
// r5 - vector
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698