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

Unified Diff: src/factory.cc

Issue 2624903003: [runtime] Use PropertyKind/PropertyLocation instead of PropertyType. (Closed)
Patch Set: Created 3 years, 11 months 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
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index 877b3f7c685750688f890c2c16b0e11a44193bc1..07dc8b5d09d18c097aaf38d4479f684296d178d1 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -1770,7 +1770,7 @@ Handle<JSGlobalObject> Factory::NewJSGlobalObject(
for (int i = 0; i < map->NumberOfOwnDescriptors(); i++) {
PropertyDetails details = descs->GetDetails(i);
// Only accessors are expected.
- DCHECK_EQ(ACCESSOR_CONSTANT, details.type());
+ DCHECK_EQ(kAccessor, details.kind());
PropertyDetails d(details.attributes(), ACCESSOR_CONSTANT, i + 1,
Jakob Kummerow 2017/01/12 15:40:30 Doesn't this constructor get updated too?
Igor Sheludko 2017/01/12 15:52:31 Right. I'll update the PropertyDetails constructor
PropertyCellType::kMutable);
Handle<Name> name(descs->GetKey(i));
« no previous file with comments | « src/elements.cc ('k') | src/ic/handler-compiler.cc » ('j') | src/json-stringifier.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698