Index: src/x64/ic-x64.cc |
=================================================================== |
--- src/x64/ic-x64.cc (revision 10217) |
+++ src/x64/ic-x64.cc (working copy) |
@@ -1641,6 +1641,9 @@ |
rewritten = stub.GetCode(); |
} else { |
ICCompareStub stub(op_, state); |
+ if (state == KNOWN_OBJECTS) { |
+ stub.set_known_map(Handle<Map>(Handle<JSObject>::cast(x)->map())); |
+ } |
rewritten = stub.GetCode(); |
} |
set_target(*rewritten); |