Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index 76eb076a8dffb74b1a2790cc9eeac83a1777739b..69513da0a637384cf133cd3b36fbc56df9ce3517 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -1138,7 +1138,7 @@ RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorOnly) { |
Handle<InterceptorInfo> interceptor_info = args.at<InterceptorInfo>(1); |
ASSERT(kArgsOffset == 2); |
// No ReturnValue in interceptors. |
- ASSERT(args.length() == kArgsOffset + PCA::kArgsLength - 1); |
+ ASSERT_EQ(kArgsOffset + PCA::kArgsLength - 2, args.length()); |
// TODO(rossberg): Support symbols in the API. |
if (name_handle->IsSymbol()) |
@@ -1205,7 +1205,7 @@ static MaybeObject* LoadWithInterceptor(Arguments* args, |
Handle<InterceptorInfo> interceptor_info = args->at<InterceptorInfo>(1); |
ASSERT(kArgsOffset == 2); |
// No ReturnValue in interceptors. |
- ASSERT(args->length() == kArgsOffset + PCA::kArgsLength - 1); |
+ ASSERT_EQ(kArgsOffset + PCA::kArgsLength - 2, args->length()); |
Handle<JSObject> receiver_handle = |
args->at<JSObject>(kArgsOffset - PCA::kThisIndex); |
Handle<JSObject> holder_handle = |