Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 3bec1c5af1afd17ad117cdd7e9a62dd4726006b3..d7b1b55c20a06589f472cb39f0eb022e7ff41490 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -1185,6 +1185,10 @@ Register StubCompiler::CheckPrototypes(Handle<JSObject> object, |
int save_at_depth, |
Label* miss, |
PrototypeCheckType check) { |
+ // Make sure that the type feedback oracle harvests the receiver map. |
+ // TODO(svenpanne) Remove this hack when all ICs are reworked. |
+ __ mov(scratch1, Operand(Handle<Map>(object->map()))); |
+ |
Handle<JSObject> first = object; |
// Make sure there's no overlap between holder and object registers. |
ASSERT(!scratch1.is(object_reg) && !scratch1.is(holder_reg)); |