Index: src/ic/s390/stub-cache-s390.cc |
diff --git a/src/ic/s390/stub-cache-s390.cc b/src/ic/s390/stub-cache-s390.cc |
index 26cfb5cc27e38ddb0d86aac133a0645e76f4b9b4..a0564a3be38fb6c5e6156321bd90540df4c1b6e7 100644 |
--- a/src/ic/s390/stub-cache-s390.cc |
+++ b/src/ic/s390/stub-cache-s390.cc |
@@ -15,8 +15,7 @@ namespace internal { |
#define __ ACCESS_MASM(masm) |
static void ProbeTable(StubCache* stub_cache, MacroAssembler* masm, |
- Code::Flags flags, StubCache::Table table, |
- Register receiver, Register name, |
+ StubCache::Table table, Register receiver, Register name, |
// The offset is scaled by 4, based on |
// kCacheIndexShift, which is two bits |
Register offset, Register scratch, Register scratch2, |
@@ -71,16 +70,6 @@ static void ProbeTable(StubCache* stub_cache, MacroAssembler* masm, |
scratch2 = no_reg; |
__ LoadP(code, MemOperand(base_addr, value_off_addr - key_off_addr)); |
- // Check that the flags match what we're looking for. |
- Register flags_reg = base_addr; |
- base_addr = no_reg; |
- __ LoadlW(flags_reg, FieldMemOperand(code, Code::kFlagsOffset)); |
- |
- DCHECK(!r0.is(flags_reg)); |
- __ AndP(flags_reg, flags_reg, Operand(~Code::kFlagsNotUsedInLookup)); |
- __ CmpLogicalP(flags_reg, Operand(flags)); |
- __ bne(&miss, Label::kNear); |
- |
#ifdef DEBUG |
if (FLAG_test_secondary_stub_cache && table == StubCache::kPrimary) { |
__ b(&miss, Label::kNear); |
@@ -101,9 +90,6 @@ static void ProbeTable(StubCache* stub_cache, MacroAssembler* masm, |
void StubCache::GenerateProbe(MacroAssembler* masm, Register receiver, |
Register name, Register scratch, Register extra, |
Register extra2, Register extra3) { |
- Code::Flags flags = |
- Code::RemoveHolderFromFlags(Code::ComputeHandlerFlags(ic_kind_)); |
- |
Label miss; |
#if V8_TARGET_ARCH_S390X |
@@ -154,24 +140,24 @@ void StubCache::GenerateProbe(MacroAssembler* masm, Register receiver, |
__ LoadlW(scratch, FieldMemOperand(name, Name::kHashFieldOffset)); |
__ LoadP(ip, FieldMemOperand(receiver, HeapObject::kMapOffset)); |
__ AddP(scratch, scratch, ip); |
- __ XorP(scratch, scratch, Operand(flags)); |
+ __ XorP(scratch, scratch, Operand(kPrimaryMagic)); |
// The mask omits the last two bits because they are not part of the hash. |
__ AndP(scratch, scratch, |
Operand((kPrimaryTableSize - 1) << kCacheIndexShift)); |
// Probe the primary table. |
- ProbeTable(this, masm, flags, kPrimary, receiver, name, scratch, extra, |
- extra2, extra3); |
+ ProbeTable(this, masm, kPrimary, receiver, name, scratch, extra, extra2, |
+ extra3); |
// Primary miss: Compute hash for secondary probe. |
__ SubP(scratch, scratch, name); |
- __ AddP(scratch, scratch, Operand(flags)); |
+ __ AddP(scratch, scratch, Operand(kSecondaryMagic)); |
__ AndP(scratch, scratch, |
Operand((kSecondaryTableSize - 1) << kCacheIndexShift)); |
// Probe the secondary table. |
- ProbeTable(this, masm, flags, kSecondary, receiver, name, scratch, extra, |
- extra2, extra3); |
+ ProbeTable(this, masm, kSecondary, receiver, name, scratch, extra, extra2, |
+ extra3); |
// Cache miss: Fall-through and let caller handle the miss by |
// entering the runtime system. |