| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index 79158ae4b503aebf6406a20fda137cb0f8b8807c..d487a5b266236e9da2a938fc990871bd1b20c2f8 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -1,5 +1,4 @@
|
| // Copyright 2012 the V8 project authors. All rights reserved.
|
| -
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -10813,24 +10812,18 @@ TEST(DontLeakGlobalObjects) {
|
| { v8::HandleScope scope;
|
| LocalContext context;
|
| }
|
| - // Fire context disposed notification to force clearing monomorphic ICs.
|
| - v8::V8::ContextDisposedNotification();
|
| CheckSurvivingGlobalObjectsCount(0);
|
|
|
| { v8::HandleScope scope;
|
| LocalContext context;
|
| v8_compile("Date")->Run();
|
| }
|
| - // Fire context disposed notification to force clearing monomorphic ICs.
|
| - v8::V8::ContextDisposedNotification();
|
| CheckSurvivingGlobalObjectsCount(0);
|
|
|
| { v8::HandleScope scope;
|
| LocalContext context;
|
| v8_compile("/aaa/")->Run();
|
| }
|
| - // Fire context disposed notification to force clearing monomorphic ICs.
|
| - v8::V8::ContextDisposedNotification();
|
| CheckSurvivingGlobalObjectsCount(0);
|
|
|
| { v8::HandleScope scope;
|
| @@ -10839,8 +10832,6 @@ TEST(DontLeakGlobalObjects) {
|
| LocalContext context(&extensions);
|
| v8_compile("gc();")->Run();
|
| }
|
| - // Fire context disposed notification to force clearing monomorphic ICs.
|
| - v8::V8::ContextDisposedNotification();
|
| CheckSurvivingGlobalObjectsCount(0);
|
| }
|
| }
|
| @@ -14672,7 +14663,6 @@ TEST(Regress528) {
|
| context->Exit();
|
| }
|
| context.Dispose();
|
| - v8::V8::ContextDisposedNotification();
|
| for (gc_count = 1; gc_count < 10; gc_count++) {
|
| other_context->Enter();
|
| CompileRun(source_exception);
|
|
|