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 02496e0bfb66a5dca1b7c3f0b367c5e33c747eb5..2bb80530352abd349014c8c42ccc505d927dbf05 100644 |
--- a/test/cctest/test-field-type-tracking.cc |
+++ b/test/cctest/test-field-type-tracking.cc |
@@ -1380,9 +1380,10 @@ TEST(ReconfigureDataFieldAttribute_DataConstantToDataFieldAfterTargetMap) { |
void UpdateExpectations(int property_index, Expectations& expectations) { |
Isolate* isolate = CcTest::i_isolate(); |
- Handle<HeapType> any_type = HeapType::Any(isolate); |
+ Handle<HeapType> function_type = |
+ HeapType::Class(isolate->sloppy_function_map(), isolate); |
expectations.SetDataField(property_index, Representation::HeapObject(), |
- any_type); |
+ function_type); |
} |
}; |
@@ -2136,7 +2137,8 @@ TEST(TransitionDataConstantToAnotherDataConstant) { |
v8::HandleScope scope(CcTest::isolate()); |
Isolate* isolate = CcTest::i_isolate(); |
Factory* factory = isolate->factory(); |
- Handle<HeapType> any_type = HeapType::Any(isolate); |
+ Handle<HeapType> function_type = |
+ HeapType::Class(isolate->sloppy_function_map(), isolate); |
Handle<JSFunction> js_func1 = factory->NewFunction(factory->empty_string()); |
TransitionToDataConstantOperator transition_op1(js_func1); |
@@ -2144,8 +2146,8 @@ TEST(TransitionDataConstantToAnotherDataConstant) { |
Handle<JSFunction> js_func2 = factory->NewFunction(factory->empty_string()); |
TransitionToDataConstantOperator transition_op2(js_func2); |
- FieldGeneralizationChecker checker(kPropCount - 1, |
- Representation::HeapObject(), any_type); |
+ FieldGeneralizationChecker checker( |
+ kPropCount - 1, Representation::HeapObject(), function_type); |
TestTransitionTo(transition_op1, transition_op2, checker); |
} |