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