Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index 28da712894befcc89237e2306b83b7b0a0188c0a..ec2fb3dd6e0e4ef85a4ceb2e9d0b7b7ab251a389 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -4,7 +4,6 @@ |
#include "v8.h" |
-#include "compilation-cache.h" |
#include "execution.h" |
#include "factory.h" |
#include "macro-assembler.h" |
@@ -1066,7 +1065,6 @@ TEST(TestInternalWeakLists) { |
} |
// Mark compact handles the weak references. |
- ISOLATE->compilation_cache()->Clear(); |
HEAP->CollectAllGarbage(Heap::kNoGCFlags); |
CHECK_EQ(opt ? 4 : 0, CountOptimizedUserFunctions(ctx[i])); |
@@ -1397,7 +1395,6 @@ TEST(LeakNativeContextViaMap) { |
ctx2->Exit(); |
ctx1->Exit(); |
ctx1.Dispose(); |
- v8::V8::ContextDisposedNotification(); |
} |
HEAP->CollectAllAvailableGarbage(); |
CHECK_EQ(2, NumberOfGlobalObjects()); |
@@ -1435,7 +1432,6 @@ TEST(LeakNativeContextViaFunction) { |
ctx2->Exit(); |
ctx1->Exit(); |
ctx1.Dispose(); |
- v8::V8::ContextDisposedNotification(); |
} |
HEAP->CollectAllAvailableGarbage(); |
CHECK_EQ(2, NumberOfGlobalObjects()); |
@@ -1471,7 +1467,6 @@ TEST(LeakNativeContextViaMapKeyed) { |
ctx2->Exit(); |
ctx1->Exit(); |
ctx1.Dispose(); |
- v8::V8::ContextDisposedNotification(); |
} |
HEAP->CollectAllAvailableGarbage(); |
CHECK_EQ(2, NumberOfGlobalObjects()); |
@@ -1511,7 +1506,6 @@ TEST(LeakNativeContextViaMapProto) { |
ctx2->Exit(); |
ctx1->Exit(); |
ctx1.Dispose(); |
- v8::V8::ContextDisposedNotification(); |
} |
HEAP->CollectAllAvailableGarbage(); |
CHECK_EQ(2, NumberOfGlobalObjects()); |
@@ -2106,6 +2100,8 @@ TEST(IncrementalMarkingPreservesMonomorhpicIC) { |
Code* ic_before = FindFirstIC(f->shared()->code(), Code::LOAD_IC); |
CHECK(ic_before->ic_state() == MONOMORPHIC); |
+ // Fire context dispose notification. |
+ v8::V8::ContextDisposedNotification(); |
SimulateIncrementalMarking(); |
HEAP->CollectAllGarbage(Heap::kNoGCFlags); |