From 6cf48ce3d7c07d9f02a3ec140049e66a4e116dd4 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Mon, 15 Oct 2012 06:34:22 +0000 Subject: [PATCH] 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 --- src/bootstrapper.cc | 2 +- src/execution.cc | 2 +- src/profile-generator.cc | 4 ++-- test/cctest/test-serialize.cc | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc index 9fb79e7..4b40d92 100644 --- a/src/bootstrapper.cc +++ b/src/bootstrapper.cc @@ -1806,7 +1806,7 @@ bool Genesis::InstallNatives() { native_context()->set_regexp_result_map(*initial_map); } -#ifdef DEBUG +#ifdef VERIFY_HEAP builtins->Verify(); #endif diff --git a/src/execution.cc b/src/execution.cc index 330e41f..89091ba 100644 --- a/src/execution.cc +++ b/src/execution.cc @@ -118,7 +118,7 @@ static Handle Invoke(bool is_construct, CALL_GENERATED_CODE(stub_entry, function_entry, func, recv, argc, argv); } -#ifdef DEBUG +#ifdef VERIFY_HEAP value->Verify(); #endif diff --git a/src/profile-generator.cc b/src/profile-generator.cc index 2cca470..f50d85c 100644 --- a/src/profile-generator.cc +++ b/src/profile-generator.cc @@ -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 diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc index c309944..8279182 100644 --- a/test/cctest/test-serialize.cc +++ b/test/cctest/test-serialize.cc @@ -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()); -- 2.7.4