diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-12-04 08:20:37 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-12-06 15:23:33 +0100 |
commit | 9b4bf7de6c9a7c25f116c7a502384c20b5cfaea3 (patch) | |
tree | 2b0c843168dafb939d8df8a15b2aa72b76dee51d /deps/v8/test/cctest/test-field-type-tracking.cc | |
parent | b8fbe69db1292307adb2c2b2e0d5ef48c4ab2faf (diff) | |
download | node-new-9b4bf7de6c9a7c25f116c7a502384c20b5cfaea3.tar.gz |
deps: update V8 to 7.1.302.28
PR-URL: https://github.com/nodejs/node/pull/23423
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Diffstat (limited to 'deps/v8/test/cctest/test-field-type-tracking.cc')
-rw-r--r-- | deps/v8/test/cctest/test-field-type-tracking.cc | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/deps/v8/test/cctest/test-field-type-tracking.cc b/deps/v8/test/cctest/test-field-type-tracking.cc index 4e37103558..f40dbe83bd 100644 --- a/deps/v8/test/cctest/test-field-type-tracking.cc +++ b/deps/v8/test/cctest/test-field-type-tracking.cc @@ -370,9 +370,8 @@ class Expectations { heap_type); Handle<String> name = MakeName("prop", property_index); - return Map::TransitionToDataProperty( - isolate_, map, name, value, attributes, constness, - Object::CERTAINLY_NOT_STORE_FROM_KEYED); + return Map::TransitionToDataProperty(isolate_, map, name, value, attributes, + constness, StoreOrigin::kNamed); } Handle<Map> TransitionToDataConstant(Handle<Map> map, @@ -383,9 +382,9 @@ class Expectations { SetDataConstant(property_index, attributes, value); Handle<String> name = MakeName("prop", property_index); - return Map::TransitionToDataProperty( - isolate_, map, name, value, attributes, PropertyConstness::kConst, - Object::CERTAINLY_NOT_STORE_FROM_KEYED); + return Map::TransitionToDataProperty(isolate_, map, name, value, attributes, + PropertyConstness::kConst, + StoreOrigin::kNamed); } Handle<Map> FollowDataTransition(Handle<Map> map, @@ -657,7 +656,9 @@ static void TestGeneralizeField(int detach_property_at_index, CanonicalHandleScope canonical(isolate); JSHeapBroker broker(isolate, &zone); CompilationDependencies dependencies(isolate, &zone); - dependencies.DependOnFieldType(MapRef(&broker, map), property_index); + MapRef map_ref(&broker, map); + map_ref.SerializeOwnDescriptors(); + dependencies.DependOnFieldType(map_ref, property_index); Handle<Map> field_owner(map->FindFieldOwner(isolate, property_index), isolate); @@ -1029,7 +1030,9 @@ static void TestReconfigureDataFieldAttribute_GeneralizeField( CanonicalHandleScope canonical(isolate); JSHeapBroker broker(isolate, &zone); CompilationDependencies dependencies(isolate, &zone); - dependencies.DependOnFieldType(MapRef(&broker, map), kSplitProp); + MapRef map_ref(&broker, map); + map_ref.SerializeOwnDescriptors(); + dependencies.DependOnFieldType(map_ref, kSplitProp); // Reconfigure attributes of property |kSplitProp| of |map2| to NONE, which // should generalize representations in |map1|. @@ -1113,7 +1116,9 @@ static void TestReconfigureDataFieldAttribute_GeneralizeFieldTrivial( CanonicalHandleScope canonical(isolate); JSHeapBroker broker(isolate, &zone); CompilationDependencies dependencies(isolate, &zone); - dependencies.DependOnFieldType(MapRef(&broker, map), kSplitProp); + MapRef map_ref(&broker, map); + map_ref.SerializeOwnDescriptors(); + dependencies.DependOnFieldType(map_ref, kSplitProp); // Reconfigure attributes of property |kSplitProp| of |map2| to NONE, which // should generalize representations in |map1|. @@ -1794,7 +1799,9 @@ static void TestReconfigureElementsKind_GeneralizeField( CanonicalHandleScope canonical(isolate); JSHeapBroker broker(isolate, &zone); CompilationDependencies dependencies(isolate, &zone); - dependencies.DependOnFieldType(MapRef(&broker, map), kDiffProp); + MapRef map_ref(&broker, map); + map_ref.SerializeOwnDescriptors(); + dependencies.DependOnFieldType(map_ref, kDiffProp); // Reconfigure elements kinds of |map2|, which should generalize // representations in |map|. @@ -1889,7 +1896,9 @@ static void TestReconfigureElementsKind_GeneralizeFieldTrivial( CanonicalHandleScope canonical(isolate); JSHeapBroker broker(isolate, &zone); CompilationDependencies dependencies(isolate, &zone); - dependencies.DependOnFieldType(MapRef(&broker, map), kDiffProp); + MapRef map_ref(&broker, map); + map_ref.SerializeOwnDescriptors(); + dependencies.DependOnFieldType(map_ref, kDiffProp); // Reconfigure elements kinds of |map2|, which should generalize // representations in |map|. |