| Index: test/cctest/heap/test-heap.cc
|
| diff --git a/test/cctest/heap/test-heap.cc b/test/cctest/heap/test-heap.cc
|
| index 10ff89c278e198baee5c9e35bc8e8298bb8066d6..0cedb188579256e4ea259d719967aa73200b517d 100644
|
| --- a/test/cctest/heap/test-heap.cc
|
| +++ b/test/cctest/heap/test-heap.cc
|
| @@ -1587,25 +1587,11 @@ TEST(CompilationCacheCachingBehavior) {
|
| CompileRun(raw_source);
|
| }
|
|
|
| - // On first compilation, only a hash is inserted in the code cache. We can't
|
| - // find that value.
|
| + // The script should be in the cache now.
|
| MaybeHandle<SharedFunctionInfo> info = compilation_cache->LookupScript(
|
| source, Handle<Object>(), 0, 0,
|
| v8::ScriptOriginOptions(false, true, false), native_context,
|
| language_mode);
|
| - CHECK(info.is_null());
|
| -
|
| - {
|
| - v8::HandleScope scope(CcTest::isolate());
|
| - CompileRun(raw_source);
|
| - }
|
| -
|
| - // On second compilation, the hash is replaced by a real cache entry mapping
|
| - // the source to the shared function info containing the code.
|
| - info = compilation_cache->LookupScript(
|
| - source, Handle<Object>(), 0, 0,
|
| - v8::ScriptOriginOptions(false, true, false), native_context,
|
| - language_mode);
|
| CHECK(!info.is_null());
|
|
|
| // Check that the code cache entry survives at least on GC.
|
| @@ -1637,36 +1623,6 @@ TEST(CompilationCacheCachingBehavior) {
|
| v8::ScriptOriginOptions(false, true, false), native_context,
|
| language_mode);
|
| CHECK(info.is_null());
|
| -
|
| - {
|
| - v8::HandleScope scope(CcTest::isolate());
|
| - CompileRun(raw_source);
|
| - }
|
| -
|
| - // On first compilation, only a hash is inserted in the code cache. We can't
|
| - // find that value.
|
| - info = compilation_cache->LookupScript(
|
| - source, Handle<Object>(), 0, 0,
|
| - v8::ScriptOriginOptions(false, true, false), native_context,
|
| - language_mode);
|
| - CHECK(info.is_null());
|
| -
|
| - for (int i = 0; i < CompilationCacheTable::kHashGenerations; i++) {
|
| - compilation_cache->MarkCompactPrologue();
|
| - }
|
| -
|
| - {
|
| - v8::HandleScope scope(CcTest::isolate());
|
| - CompileRun(raw_source);
|
| - }
|
| -
|
| - // If we aged the cache before caching the script, ensure that we didn't cache
|
| - // on next compilation.
|
| - info = compilation_cache->LookupScript(
|
| - source, Handle<Object>(), 0, 0,
|
| - v8::ScriptOriginOptions(false, true, false), native_context,
|
| - language_mode);
|
| - CHECK(info.is_null());
|
| }
|
|
|
|
|
|
|