From 7113163145c3bc3dfbcca68b236e2b1ee807b26c Mon Sep 17 00:00:00 2001 From: "vegorov@chromium.org" Date: Tue, 17 Aug 2010 12:10:27 +0000 Subject: [PATCH] Fix presubmit and check failures introduced by r5284. Review URL: http://codereview.chromium.org/3141021 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5285 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mark-compact.cc | 8 ++++---- test/cctest/test-heap.cc | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mark-compact.cc b/src/mark-compact.cc index 26dfbb8..c5eabeb 100644 --- a/src/mark-compact.cc +++ b/src/mark-compact.cc @@ -518,15 +518,15 @@ class StaticMarkingVisitor : public StaticVisitorBase { if (!ctx->IsHeapObject()) return false; Map* map = SafeMap(ctx); - if(!(map == Heap::raw_unchecked_context_map() || - map == Heap::raw_unchecked_catch_context_map() || - map == Heap::raw_unchecked_global_context_map())) { + if (!(map == Heap::raw_unchecked_context_map() || + map == Heap::raw_unchecked_catch_context_map() || + map == Heap::raw_unchecked_global_context_map())) { return false; } Context* context = reinterpret_cast(ctx); - if(IsJSBuiltinsObject(context->global())) { + if (IsJSBuiltinsObject(context->global())) { return false; } diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc index 5b46285..9d5e1f1 100644 --- a/test/cctest/test-heap.cc +++ b/test/cctest/test-heap.cc @@ -980,6 +980,7 @@ TEST(TestCodeFlushing) { Heap::CollectAllGarbage(true); Heap::CollectAllGarbage(true); Heap::CollectAllGarbage(true); + Heap::CollectAllGarbage(true); // foo should no longer be in the compilation cache CHECK(!function->shared()->is_compiled()); -- 2.7.4