Index: src/x64/stub-cache-x64.cc |
diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc |
index bde1d0b377073272e8dbfe163ef3c35aafcc03ec..7e4fdeabc4c313e4de8c06f0fe619ba4701ac3d4 100644 |
--- a/src/x64/stub-cache-x64.cc |
+++ b/src/x64/stub-cache-x64.cc |
@@ -1059,6 +1059,9 @@ 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. |
+ __ Move(scratch1, 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)); |