| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index 82958393c5a20238788a4f556a59ccaad8558098..ed80bd69811482c87c59e14565e59f273344b6c8 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -1407,7 +1407,7 @@ TEST(CompilationCacheCachingBehavior) {
|
| // On first compilation, only a hash is inserted in the code cache. We can't
|
| // find that value.
|
| MaybeHandle<SharedFunctionInfo> info = compilation_cache->LookupScript(
|
| - source, Handle<Object>(), 0, 0, true, native_context);
|
| + source, Handle<Object>(), 0, 0, false, true, native_context);
|
| CHECK(info.is_null());
|
|
|
| {
|
| @@ -1417,16 +1417,16 @@ TEST(CompilationCacheCachingBehavior) {
|
|
|
| // 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, true,
|
| - native_context);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context);
|
| CHECK(!info.is_null());
|
|
|
| heap->CollectAllGarbage(Heap::kNoGCFlags);
|
|
|
| // 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, true,
|
| - native_context);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context);
|
| CHECK(!info.is_null());
|
|
|
| while (!info.ToHandleChecked()->code()->IsOld()) {
|
| @@ -1435,8 +1435,8 @@ TEST(CompilationCacheCachingBehavior) {
|
|
|
| heap->CollectAllGarbage(Heap::kNoGCFlags);
|
| // Ensure code aging cleared the entry from the cache.
|
| - info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, true,
|
| - native_context);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context);
|
| CHECK(info.is_null());
|
|
|
| {
|
| @@ -1446,8 +1446,8 @@ TEST(CompilationCacheCachingBehavior) {
|
|
|
| // 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, true,
|
| - native_context);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context);
|
| CHECK(info.is_null());
|
|
|
| for (int i = 0; i < CompilationCacheTable::kHashGenerations; i++) {
|
| @@ -1461,8 +1461,8 @@ TEST(CompilationCacheCachingBehavior) {
|
|
|
| // 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, true,
|
| - native_context);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context);
|
| CHECK(info.is_null());
|
| }
|
|
|
|
|