Index: test/cctest/test-heap.cc |
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc |
index db65cd8baaea683bbb6e5246509498dcb398c5f1..e52c0e4a1480244a2fc6cd2b6958f95e94798822 100644 |
--- a/test/cctest/test-heap.cc |
+++ b/test/cctest/test-heap.cc |
@@ -2364,7 +2364,7 @@ |
// Subtract two to compensate for the two global objects (not global |
// JSObjects, of which there would only be one) that are part of the code stub |
// context, which is always present. |
- return count - 1; |
+ return count - 2; |
} |
@@ -2384,7 +2384,7 @@ |
} |
CcTest::heap()->CollectAllAvailableGarbage(); |
- CHECK_EQ(2, NumberOfGlobalObjects()); |
+ CHECK_EQ(4, NumberOfGlobalObjects()); |
{ |
v8::HandleScope inner_scope(isolate); |
@@ -2410,7 +2410,7 @@ |
isolate->ContextDisposedNotification(); |
} |
CcTest::heap()->CollectAllAvailableGarbage(); |
- CHECK_EQ(1, NumberOfGlobalObjects()); |
+ CHECK_EQ(2, NumberOfGlobalObjects()); |
ctx2p.Reset(); |
CcTest::heap()->CollectAllAvailableGarbage(); |
CHECK_EQ(0, NumberOfGlobalObjects()); |
@@ -2433,7 +2433,7 @@ |
} |
CcTest::heap()->CollectAllAvailableGarbage(); |
- CHECK_EQ(2, NumberOfGlobalObjects()); |
+ CHECK_EQ(4, NumberOfGlobalObjects()); |
{ |
v8::HandleScope inner_scope(isolate); |
@@ -2459,7 +2459,7 @@ |
isolate->ContextDisposedNotification(); |
} |
CcTest::heap()->CollectAllAvailableGarbage(); |
- CHECK_EQ(1, NumberOfGlobalObjects()); |
+ CHECK_EQ(2, NumberOfGlobalObjects()); |
ctx2p.Reset(); |
CcTest::heap()->CollectAllAvailableGarbage(); |
CHECK_EQ(0, NumberOfGlobalObjects()); |
@@ -2480,7 +2480,7 @@ |
} |
CcTest::heap()->CollectAllAvailableGarbage(); |
- CHECK_EQ(2, NumberOfGlobalObjects()); |
+ CHECK_EQ(4, NumberOfGlobalObjects()); |
{ |
v8::HandleScope inner_scope(isolate); |
@@ -2506,7 +2506,7 @@ |
isolate->ContextDisposedNotification(); |
} |
CcTest::heap()->CollectAllAvailableGarbage(); |
- CHECK_EQ(1, NumberOfGlobalObjects()); |
+ CHECK_EQ(2, NumberOfGlobalObjects()); |
ctx2p.Reset(); |
CcTest::heap()->CollectAllAvailableGarbage(); |
CHECK_EQ(0, NumberOfGlobalObjects()); |
@@ -2527,7 +2527,7 @@ |
} |
CcTest::heap()->CollectAllAvailableGarbage(); |
- CHECK_EQ(2, NumberOfGlobalObjects()); |
+ CHECK_EQ(4, NumberOfGlobalObjects()); |
{ |
v8::HandleScope inner_scope(isolate); |
@@ -2557,7 +2557,7 @@ |
isolate->ContextDisposedNotification(); |
} |
CcTest::heap()->CollectAllAvailableGarbage(); |
- CHECK_EQ(1, NumberOfGlobalObjects()); |
+ CHECK_EQ(2, NumberOfGlobalObjects()); |
ctx2p.Reset(); |
CcTest::heap()->CollectAllAvailableGarbage(); |
CHECK_EQ(0, NumberOfGlobalObjects()); |