Bug 1343590 - Improve CallArgs gray marking assertions r=sfink
authorJon Coppeard <jcoppeard@mozilla.com>
Thu, 02 Mar 2017 10:23:15 +0000
changeset 394579 772de2146034c098b70024da6a7c74b941fc2ead
parent 394578 5a927aeb8fb3d765371c8b24204187f57ed54a8e
child 394580 7453899cfe444fbc04fb034b3365abaf5eda6af5
push id1468
push userasasaki@mozilla.com
push dateMon, 05 Jun 2017 19:31:07 +0000
treeherdermozilla-release@0641fc6ee9d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink
bugs1343590
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1343590 - Improve CallArgs gray marking assertions r=sfink
js/public/CallArgs.h
--- a/js/public/CallArgs.h
+++ b/js/public/CallArgs.h
@@ -284,16 +284,18 @@ class MOZ_STACK_CLASS CallArgs : public 
 
     static CallArgs create(unsigned argc, Value* argv, bool constructing) {
         CallArgs args;
         args.clearUsedRval();
         args.argv_ = argv;
         args.argc_ = argc;
         args.constructing_ = constructing;
 #ifdef DEBUG
+        MOZ_ASSERT(ValueIsNotGray(args.thisv()));
+        MOZ_ASSERT(ValueIsNotGray(args.calleev()));
         for (unsigned i = 0; i < argc; ++i)
             MOZ_ASSERT(ValueIsNotGray(argv[i]));
 #endif
         return args;
     }
 
   public:
     /*