| Index: src/arm/stub-cache-arm.cc
|
| ===================================================================
|
| --- src/arm/stub-cache-arm.cc (revision 4978)
|
| +++ src/arm/stub-cache-arm.cc (working copy)
|
| @@ -39,13 +39,14 @@
|
| #define __ ACCESS_MASM(masm)
|
|
|
|
|
| -static void ProbeTable(MacroAssembler* masm,
|
| +static void ProbeTable(Isolate* isolate,
|
| + MacroAssembler* masm,
|
| Code::Flags flags,
|
| StubCache::Table table,
|
| Register name,
|
| Register offset) {
|
| - ExternalReference key_offset(SCTableReference::keyReference(table));
|
| - ExternalReference value_offset(SCTableReference::valueReference(table));
|
| + ExternalReference key_offset(isolate->stub_cache()->key_reference(table));
|
| + ExternalReference value_offset(isolate->stub_cache()->value_reference(table));
|
|
|
| Label miss;
|
|
|
| @@ -89,6 +90,7 @@
|
| Register name,
|
| Register scratch,
|
| Register extra) {
|
| + Isolate* isolate = Isolate::Current();
|
| Label miss;
|
|
|
| // Make sure that code is valid. The shifting code relies on the
|
| @@ -116,7 +118,7 @@
|
| Operand((kPrimaryTableSize - 1) << kHeapObjectTagSize));
|
|
|
| // Probe the primary table.
|
| - ProbeTable(masm, flags, kPrimary, name, scratch);
|
| + ProbeTable(isolate, masm, flags, kPrimary, name, scratch);
|
|
|
| // Primary miss: Compute hash for secondary probe.
|
| __ sub(scratch, scratch, Operand(name));
|
| @@ -126,7 +128,7 @@
|
| Operand((kSecondaryTableSize - 1) << kHeapObjectTagSize));
|
|
|
| // Probe the secondary table.
|
| - ProbeTable(masm, flags, kSecondary, name, scratch);
|
| + ProbeTable(isolate, masm, flags, kSecondary, name, scratch);
|
|
|
| // Cache miss: Fall-through and let caller handle the miss by
|
| // entering the runtime system.
|
|
|