diff options
Diffstat (limited to 'deps/v8/test/cctest/test-object.cc')
-rw-r--r-- | deps/v8/test/cctest/test-object.cc | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/deps/v8/test/cctest/test-object.cc b/deps/v8/test/cctest/test-object.cc index 0a2c066e25..4a2dccae6d 100644 --- a/deps/v8/test/cctest/test-object.cc +++ b/deps/v8/test/cctest/test-object.cc @@ -181,9 +181,11 @@ TEST(EnumCache) { // Creating the EnumCache for {c} will create a new EnumCache on the shared // DescriptorArray. Handle<EnumCache> previous_enum_cache( - a->map()->instance_descriptors()->GetEnumCache()); - Handle<FixedArray> previous_keys(previous_enum_cache->keys()); - Handle<FixedArray> previous_indices(previous_enum_cache->indices()); + a->map()->instance_descriptors()->GetEnumCache(), a->GetIsolate()); + Handle<FixedArray> previous_keys(previous_enum_cache->keys(), + a->GetIsolate()); + Handle<FixedArray> previous_indices(previous_enum_cache->indices(), + a->GetIsolate()); CompileRun("var s = 0; for (let key in c) { s += c[key] };"); { CHECK_EQ(a->map()->EnumLength(), 1); @@ -217,9 +219,9 @@ TEST(EnumCache) { // {b} can reuse the existing EnumCache, hence we only need to set the correct // EnumLength on the map without modifying the cache itself. previous_enum_cache = - handle(a->map()->instance_descriptors()->GetEnumCache()); - previous_keys = handle(previous_enum_cache->keys()); - previous_indices = handle(previous_enum_cache->indices()); + handle(a->map()->instance_descriptors()->GetEnumCache(), a->GetIsolate()); + previous_keys = handle(previous_enum_cache->keys(), a->GetIsolate()); + previous_indices = handle(previous_enum_cache->indices(), a->GetIsolate()); CompileRun("var s = 0; for (let key in b) { s += b[key] };"); { CHECK_EQ(a->map()->EnumLength(), 1); |