Fixed heap verification guards.

TBR=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/11147016

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12719 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent bf83c5fe
......@@ -1806,7 +1806,7 @@ bool Genesis::InstallNatives() {
native_context()->set_regexp_result_map(*initial_map);
}
#ifdef DEBUG
#ifdef VERIFY_HEAP
builtins->Verify();
#endif
......
......@@ -118,7 +118,7 @@ static Handle<Object> Invoke(bool is_construct,
CALL_GENERATED_CODE(stub_entry, function_entry, func, recv, argc, argv);
}
#ifdef DEBUG
#ifdef VERIFY_HEAP
value->Verify();
#endif
......
......@@ -3107,13 +3107,13 @@ bool HeapSnapshotGenerator::GenerateSnapshot() {
// stable. It should follow TagGlobalObjects as that can allocate.
AssertNoAllocation no_alloc;
#ifdef DEBUG
#ifdef VERIFY_HEAP
debug_heap->Verify();
#endif
SetProgressTotal(1); // 1 pass.
#ifdef DEBUG
#ifdef VERIFY_HEAP
debug_heap->Verify();
#endif
......
......@@ -285,7 +285,7 @@ static void Deserialize() {
static void SanityCheck() {
v8::HandleScope scope;
#ifdef DEBUG
#ifdef VERIFY_HEAP
HEAP->Verify();
#endif
CHECK(Isolate::Current()->global_object()->IsJSObject());
......
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