Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index 5c783f55e8df96b889f36c0d9670cdb0d25b2474..8a50682001caac829dbf2c9325a7bcbdb3d25624 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -687,11 +687,12 @@ class CallInterceptorCompiler BASE_EMBEDDED { |
stub_compiler_->CheckPrototypes(interceptor_holder, receiver, |
lookup->holder(), scratch1, |
scratch2, name, depth2, miss); |
+ } else { |
// CheckPrototypes has a side effect of fetching a 'holder' |
// for API (object which is instanceof for the signature). It's |
// safe to omit it here, as if present, it should be fetched |
// by the previous CheckPrototypes. |
- ASSERT((depth2 == kInvalidProtoDepth) || (depth1 != kInvalidProtoDepth)); |
+ ASSERT(depth2 == kInvalidProtoDepth); |
} |
// Invoke function. |