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

Unified Diff: src/property.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 | « src/property.h ('k') | test/cctest/heap/test-alloc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/property.cc
diff --git a/src/property.cc b/src/property.cc
index a4e0d67102cb12c2b1eb00176709d4bc27b2f38a..28a2374453b75d5a06b41531bc194039a6ba7300 100644
--- a/src/property.cc
+++ b/src/property.cc
@@ -21,11 +21,12 @@ std::ostream& operator<<(std::ostream& os,
return os;
}
-DataDescriptor::DataDescriptor(Handle<Name> key, int field_index,
- PropertyAttributes attributes,
- Representation representation)
- : Descriptor(key, FieldType::Any(key->GetIsolate()), attributes, DATA,
- representation, field_index) {}
+Descriptor Descriptor::DataField(Handle<Name> key, int field_index,
+ PropertyAttributes attributes,
+ Representation representation) {
+ return Descriptor(key, FieldType::Any(key->GetIsolate()), attributes, DATA,
+ representation, field_index);
+}
struct FastPropertyDetails {
explicit FastPropertyDetails(const PropertyDetails& v) : details(v) {}
« no previous file with comments | « src/property.h ('k') | test/cctest/heap/test-alloc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698