Temporary change to try to catch missing pregenerated stubs early with
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 29 Sep 2011 12:53:27 +0000 (12:53 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 29 Sep 2011 12:53:27 +0000 (12:53 +0000)
a CHECK instead of an ASSERT.
Review URL: http://codereview.chromium.org/8073025

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9482 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/code-stubs.cc
src/code-stubs.h

index 8828e92dd1b4bedc86d91a4b1ddbc02ed0230610..436e0cb9559b1792d353777e0cf6d621d070d40a 100644 (file)
@@ -131,7 +131,7 @@ Handle<Code> CodeStub::GetCode() {
     code = *new_object;
     Activate(code);
   } else {
-    ASSERT(IsPregenerated() == code->is_pregenerated());
+    CHECK(IsPregenerated() == code->is_pregenerated());
   }
 
   ASSERT(!NeedsImmovableCode() || heap->lo_space()->Contains(code));
index 0cc70c904e543cd9ce5cee6000fdd11df29f0f28..b0d288185f21ef511676b68670d526e0d42aace8 100644 (file)
@@ -139,10 +139,8 @@ class CodeStub BASE_EMBEDDED {
 
   bool CompilingCallsToThisStubIsGCSafe() {
     bool is_pregenerated = IsPregenerated();
-#ifdef DEBUG
     Code* code = NULL;
-    ASSERT(!is_pregenerated || FindCodeInCache(&code));
-#endif
+    CHECK(!is_pregenerated || FindCodeInCache(&code));
     return is_pregenerated;
   }