From b12e6a9c1e275b87f2b8307938fd550c7a7c7455 Mon Sep 17 00:00:00 2001 From: "dcarney@chromium.org" Date: Mon, 10 Jun 2013 09:35:47 +0000 Subject: [PATCH] adjust assertions for addition of default value R=svenpanne@chromium.org BUG= Review URL: https://codereview.chromium.org/16136012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15029 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/stub-cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stub-cache.cc b/src/stub-cache.cc index 76eb076a8d..69513da0a6 100644 --- a/src/stub-cache.cc +++ b/src/stub-cache.cc @@ -1138,7 +1138,7 @@ RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorOnly) { Handle interceptor_info = args.at(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 interceptor_info = args->at(1); ASSERT(kArgsOffset == 2); // No ReturnValue in interceptors. - ASSERT(args->length() == kArgsOffset + PCA::kArgsLength - 1); + ASSERT_EQ(kArgsOffset + PCA::kArgsLength - 2, args->length()); Handle receiver_handle = args->at(kArgsOffset - PCA::kThisIndex); Handle holder_handle =