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

Unified Diff: src/full-codegen/full-codegen.cc

Issue 2423053002: Install the 'name' property in classes at runtime (Closed)
Patch Set: Use an accessor instead of a data property Created 4 years, 1 month 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/full-codegen/full-codegen.cc
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc
index 33a1cf3f57b7e5307cd43f86b747b04c5d71e4c0..e3d19dc803d20259b661b54bed6c9396ecfa8583 100644
--- a/src/full-codegen/full-codegen.cc
+++ b/src/full-codegen/full-codegen.cc
@@ -1577,6 +1577,9 @@ void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) {
EmitClassDefineProperties(lit);
DropOperands(1);
+ // ES6 section 14.5.16 class expression evaluation, step 5
+ EmitClassDefineNameProperty(lit);
rmcilroy 2016/11/24 14:31:15 Just a heads up - FullCodeGenerator::VisitClassLit
+
// Set the constructor to have fast properties.
CallRuntimeWithOperands(Runtime::kToFastProperties);

Powered by Google App Engine
This is Rietveld 408576698