| Index: test/cctest/test-field-type-tracking.cc
|
| diff --git a/test/cctest/test-field-type-tracking.cc b/test/cctest/test-field-type-tracking.cc
|
| index 7b262db38624f6791d1bdbbd26213f84e308297c..8ee5dbac6c94d090c8f115a8f04082b999b701cc 100644
|
| --- a/test/cctest/test-field-type-tracking.cc
|
| +++ b/test/cctest/test-field-type-tracking.cc
|
| @@ -1774,63 +1774,6 @@ TEST(ElementsKindTransitionFromMapNotOwningDescriptor) {
|
| }
|
|
|
|
|
| -TEST(ForObservedTransitionFromMapOwningDescriptor) {
|
| - CcTest::InitializeVM();
|
| - v8::HandleScope scope(CcTest::isolate());
|
| - Isolate* isolate = CcTest::i_isolate();
|
| - Handle<FieldType> any_type = FieldType::Any(isolate);
|
| - Handle<FieldType> value_type =
|
| - FieldType::Class(Map::Create(isolate, 0), isolate);
|
| -
|
| - struct TestConfig {
|
| - Handle<Map> Transition(Handle<Map> map) {
|
| - return Map::CopyForObserved(map);
|
| - }
|
| - // TODO(ishell): remove once IS_PROTO_TRANS_ISSUE_FIXED is removed.
|
| - bool generalizes_representations() const { return false; }
|
| - bool is_non_equevalent_transition() const { return true; }
|
| - };
|
| - TestConfig config;
|
| - TestGeneralizeRepresentationWithSpecialTransition(
|
| - config, Representation::Smi(), any_type, Representation::HeapObject(),
|
| - value_type, Representation::Tagged(), any_type);
|
| -}
|
| -
|
| -
|
| -TEST(ForObservedTransitionFromMapNotOwningDescriptor) {
|
| - CcTest::InitializeVM();
|
| - v8::HandleScope scope(CcTest::isolate());
|
| - Isolate* isolate = CcTest::i_isolate();
|
| - Handle<FieldType> any_type = FieldType::Any(isolate);
|
| - Handle<FieldType> value_type =
|
| - FieldType::Class(Map::Create(isolate, 0), isolate);
|
| -
|
| - struct TestConfig {
|
| - Handle<Map> Transition(Handle<Map> map) {
|
| - Isolate* isolate = CcTest::i_isolate();
|
| - Handle<FieldType> any_type = FieldType::Any(isolate);
|
| -
|
| - // Add one more transition to |map| in order to prevent descriptors
|
| - // ownership.
|
| - CHECK(map->owns_descriptors());
|
| - Map::CopyWithField(map, MakeString("foo"), any_type, NONE,
|
| - Representation::Smi(), INSERT_TRANSITION)
|
| - .ToHandleChecked();
|
| - CHECK(!map->owns_descriptors());
|
| -
|
| - return Map::CopyForObserved(map);
|
| - }
|
| - // TODO(ishell): remove once IS_PROTO_TRANS_ISSUE_FIXED is removed.
|
| - bool generalizes_representations() const { return false; }
|
| - bool is_non_equevalent_transition() const { return true; }
|
| - };
|
| - TestConfig config;
|
| - TestGeneralizeRepresentationWithSpecialTransition(
|
| - config, Representation::Smi(), any_type, Representation::HeapObject(),
|
| - value_type, Representation::Tagged(), any_type);
|
| -}
|
| -
|
| -
|
| TEST(PrototypeTransitionFromMapOwningDescriptor) {
|
| CcTest::InitializeVM();
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|