Index: src/x64/stub-cache-x64.cc |
=================================================================== |
--- src/x64/stub-cache-x64.cc (revision 7926) |
+++ src/x64/stub-cache-x64.cc (working copy) |
@@ -1954,6 +1954,7 @@ |
// repatch it to global receiver. |
if (object->IsGlobalObject()) return heap()->undefined_value(); |
if (cell != NULL) return heap()->undefined_value(); |
+ if (!object->IsJSObject()) return heap()->undefined_value(); |
int depth = optimization.GetPrototypeDepthOfExpectedType( |
JSObject::cast(object), holder); |
if (depth == kInvalidProtoDepth) return heap()->undefined_value(); |