| Index: src/ic/arm/stub-cache-arm.cc
|
| diff --git a/src/ic/arm/stub-cache-arm.cc b/src/ic/arm/stub-cache-arm.cc
|
| index a8b650beecfc99f06199d6a93dd63da98d46e183..bc8b0fba84ffe7586b312adf0e75c72c41446475 100644
|
| --- a/src/ic/arm/stub-cache-arm.cc
|
| +++ b/src/ic/arm/stub-cache-arm.cc
|
| @@ -16,8 +16,8 @@ namespace internal {
|
|
|
|
|
| static void ProbeTable(Isolate* isolate, MacroAssembler* masm,
|
| - Code::Flags flags, StubCache::Table table,
|
| - Register receiver, Register name,
|
| + Code::Flags flags, bool leave_frame,
|
| + StubCache::Table table, Register receiver, Register name,
|
| // Number of the cache entry, not scaled.
|
| Register offset, Register scratch, Register scratch2,
|
| Register offset_scratch) {
|
| @@ -84,6 +84,8 @@ static void ProbeTable(Isolate* isolate, MacroAssembler* masm,
|
| }
|
| #endif
|
|
|
| + if (leave_frame) __ LeaveFrame(StackFrame::INTERNAL);
|
| +
|
| // Jump to the first instruction in the code stub.
|
| __ add(pc, code, Operand(Code::kHeaderSize - kHeapObjectTag));
|
|
|
| @@ -93,9 +95,9 @@ static void ProbeTable(Isolate* isolate, MacroAssembler* masm,
|
|
|
|
|
| void StubCache::GenerateProbe(MacroAssembler* masm, Code::Flags flags,
|
| - Register receiver, Register name,
|
| - Register scratch, Register extra, Register extra2,
|
| - Register extra3) {
|
| + bool leave_frame, Register receiver,
|
| + Register name, Register scratch, Register extra,
|
| + Register extra2, Register extra3) {
|
| Isolate* isolate = masm->isolate();
|
| Label miss;
|
|
|
| @@ -145,8 +147,8 @@ void StubCache::GenerateProbe(MacroAssembler* masm, Code::Flags flags,
|
| __ and_(scratch, scratch, Operand(mask));
|
|
|
| // Probe the primary table.
|
| - ProbeTable(isolate, masm, flags, kPrimary, receiver, name, scratch, extra,
|
| - extra2, extra3);
|
| + ProbeTable(isolate, masm, flags, leave_frame, kPrimary, receiver, name,
|
| + scratch, extra, extra2, extra3);
|
|
|
| // Primary miss: Compute hash for secondary probe.
|
| __ sub(scratch, scratch, Operand(name, LSR, kCacheIndexShift));
|
| @@ -155,8 +157,8 @@ void StubCache::GenerateProbe(MacroAssembler* masm, Code::Flags flags,
|
| __ and_(scratch, scratch, Operand(mask2));
|
|
|
| // Probe the secondary table.
|
| - ProbeTable(isolate, masm, flags, kSecondary, receiver, name, scratch, extra,
|
| - extra2, extra3);
|
| + ProbeTable(isolate, masm, flags, leave_frame, kSecondary, receiver, name,
|
| + scratch, extra, extra2, extra3);
|
|
|
| // Cache miss: Fall-through and let caller handle the miss by
|
| // entering the runtime system.
|
|
|