Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 16acc74ddfb110d30050714f3f72d0adafae08bf..967a111640f628b06faed3349cced183a5da7bdf 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -518,7 +518,9 @@ Object* StubCache::ComputeCallInterceptor(int argc, |
Object* code = map->FindInCodeCache(name, flags); |
if (code->IsUndefined()) { |
CallStubCompiler compiler(argc, NOT_IN_LOOP); |
- code = compiler.CompileCallInterceptor(object, holder, name); |
+ code = compiler.CompileCallInterceptor(JSObject::cast(object), |
+ holder, |
+ name); |
if (code->IsFailure()) return code; |
ASSERT_EQ(flags, Code::cast(code)->flags()); |
LOG(CodeCreateEvent(Logger::CALL_IC_TAG, Code::cast(code), name)); |