Revision: 15029
Author:   [email protected]
Date:     Mon Jun 10 02:35:47 2013
Log:      adjust assertions for addition of default value

[email protected]
BUG=

Review URL: https://codereview.chromium.org/16136012
http://code.google.com/p/v8/source/detail?r=15029

Modified:
 /branches/bleeding_edge/src/stub-cache.cc

=======================================
--- /branches/bleeding_edge/src/stub-cache.cc   Wed Jun  5 01:43:25 2013
+++ /branches/bleeding_edge/src/stub-cache.cc   Mon Jun 10 02:35:47 2013
@@ -1138,7 +1138,7 @@
   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 @@
   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 =

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to