Commit 44ca9b40 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Temporary change to try to catch missing pregenerated stubs early with

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
parent 279356b4
......@@ -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));
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment