| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index ab2391a875e88da54c1a2bddc8e82f54f0ed9187..46f0f0bdbdc54834c1293274a775d1502addfd2a 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -1377,8 +1377,7 @@
|
| // 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,
|
| - v8::ScriptOriginOptions(false, true, false), native_context,
|
| + source, Handle<Object>(), 0, 0, false, true, native_context,
|
| language_mode);
|
| CHECK(info.is_null());
|
|
|
| @@ -1389,20 +1388,16 @@
|
|
|
| // 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);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context, language_mode);
|
| CHECK(!info.is_null());
|
|
|
| heap->CollectAllGarbage();
|
|
|
| // 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);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context, language_mode);
|
| CHECK(!info.is_null());
|
|
|
| while (!info.ToHandleChecked()->code()->IsOld()) {
|
| @@ -1411,10 +1406,8 @@
|
|
|
| heap->CollectAllGarbage();
|
| // Ensure code aging cleared the entry from the cache.
|
| - info = compilation_cache->LookupScript(
|
| - source, Handle<Object>(), 0, 0,
|
| - v8::ScriptOriginOptions(false, true, false), native_context,
|
| - language_mode);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context, language_mode);
|
| CHECK(info.is_null());
|
|
|
| {
|
| @@ -1424,10 +1417,8 @@
|
|
|
| // 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);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context, language_mode);
|
| CHECK(info.is_null());
|
|
|
| for (int i = 0; i < CompilationCacheTable::kHashGenerations; i++) {
|
| @@ -1441,10 +1432,8 @@
|
|
|
| // 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);
|
| + info = compilation_cache->LookupScript(source, Handle<Object>(), 0, 0, false,
|
| + true, native_context, language_mode);
|
| CHECK(info.is_null());
|
| }
|
|
|
|
|