S390: VectorICs: Remove special code to increment call counts by two.
Port 63ea3a5009
Original commit message:
Previously, we used the lowest bit for something else.
R=mvstanton@chromium.org, joransiu@ca.ibm.com, bjaideep@ca.ibm.com, michael_dawson@ca.ibm.com, mbrandy@us.ibm.com
BUG=
Review-Url: https://codereview.chromium.org/2024973003
Cr-Commit-Position: refs/heads/master@{#36624}
This commit is contained in:
parent
e3bd4a396b
commit
5ad1a4046c
@ -2016,7 +2016,7 @@ void CallICStub::HandleArrayCase(MacroAssembler* masm, Label* miss) {
|
||||
__ SmiToPtrArrayOffset(r7, r5);
|
||||
__ AddP(r4, r4, r7);
|
||||
__ LoadP(r5, FieldMemOperand(r4, count_offset));
|
||||
__ AddSmiLiteral(r5, r5, Smi::FromInt(CallICNexus::kCallCountIncrement), r0);
|
||||
__ AddSmiLiteral(r5, r5, Smi::FromInt(1), r0);
|
||||
__ StoreP(r5, FieldMemOperand(r4, count_offset), r0);
|
||||
|
||||
__ LoadRR(r4, r6);
|
||||
@ -2063,7 +2063,7 @@ void CallICStub::Generate(MacroAssembler* masm) {
|
||||
// Increment the call count for monomorphic function calls.
|
||||
const int count_offset = FixedArray::kHeaderSize + kPointerSize;
|
||||
__ LoadP(r5, FieldMemOperand(r8, count_offset));
|
||||
__ AddSmiLiteral(r5, r5, Smi::FromInt(CallICNexus::kCallCountIncrement), r0);
|
||||
__ AddSmiLiteral(r5, r5, Smi::FromInt(1), r0);
|
||||
__ StoreP(r5, FieldMemOperand(r8, count_offset), r0);
|
||||
|
||||
__ bind(&call_function);
|
||||
@ -2133,7 +2133,7 @@ void CallICStub::Generate(MacroAssembler* masm) {
|
||||
__ bne(&miss);
|
||||
|
||||
// Initialize the call counter.
|
||||
__ LoadSmiLiteral(r7, Smi::FromInt(CallICNexus::kCallCountIncrement));
|
||||
__ LoadSmiLiteral(r7, Smi::FromInt(1));
|
||||
__ StoreP(r7, FieldMemOperand(r8, count_offset), r0);
|
||||
|
||||
// Store the function. Use a stub since we need a frame for allocation.
|
||||
|
Loading…
Reference in New Issue
Block a user