Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

Unified Diff: test/cctest/test-field-type-tracking.cc

Issue 2595893002: [runtime] Remove specific Descriptor subclasses and add respective factory methods instead. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/heap/test-alloc.cc ('k') | test/cctest/test-unboxed-doubles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 df6a06bfc7f0cb4824596ba17932c4c0e2f65204..17b6b46ed5f5e18359440f59efaa960abdbcb850 100644
--- a/test/cctest/test-field-type-tracking.cc
+++ b/test/cctest/test-field-type-tracking.cc
@@ -376,8 +376,8 @@ class Expectations {
Handle<String> name = MakeName("prop", property_index);
- AccessorConstantDescriptor new_desc(name, pair, attributes);
- return Map::CopyInsertDescriptor(map, &new_desc, INSERT_TRANSITION);
+ Descriptor d = Descriptor::AccessorConstant(name, pair, attributes);
+ return Map::CopyInsertDescriptor(map, &d, INSERT_TRANSITION);
}
Handle<Map> AddAccessorConstant(Handle<Map> map,
@@ -396,14 +396,14 @@ class Expectations {
if (!getter->IsNull(isolate_)) {
Handle<AccessorPair> pair = factory->NewAccessorPair();
pair->SetComponents(*getter, *factory->null_value());
- AccessorConstantDescriptor new_desc(name, pair, attributes);
- map = Map::CopyInsertDescriptor(map, &new_desc, INSERT_TRANSITION);
+ Descriptor d = Descriptor::AccessorConstant(name, pair, attributes);
+ map = Map::CopyInsertDescriptor(map, &d, INSERT_TRANSITION);
}
if (!setter->IsNull(isolate_)) {
Handle<AccessorPair> pair = factory->NewAccessorPair();
pair->SetComponents(*getter, *setter);
- AccessorConstantDescriptor new_desc(name, pair, attributes);
- map = Map::CopyInsertDescriptor(map, &new_desc, INSERT_TRANSITION);
+ Descriptor d = Descriptor::AccessorConstant(name, pair, attributes);
+ map = Map::CopyInsertDescriptor(map, &d, INSERT_TRANSITION);
}
return map;
}
« no previous file with comments | « test/cctest/heap/test-alloc.cc ('k') | test/cctest/test-unboxed-doubles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698