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

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

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.h
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h
index 2a4eb9dd3b1a5802d44354be4f612704cdfc6286..f8786b919f1469469d7527e581525bbb283ba8a1 100644
--- a/src/full-codegen/full-codegen.h
+++ b/src/full-codegen/full-codegen.h
@@ -554,6 +554,12 @@ class FullCodeGenerator final : public AstVisitor<FullCodeGenerator> {
// in the accumulator after installing all the properties.
void EmitClassDefineProperties(ClassLiteral* lit);
+ // Adds a static 'name' property to the class (function) object unless an
+ // equally-named static property already exists.
+ // Expects the class in the accumulator. The class is in the accumulator when
+ // returning.
+ void EmitClassDefineNameProperty(ClassLiteral* lit);
+
// Pushes the property key as a Name on the stack.
void EmitPropertyKey(LiteralProperty* property, BailoutId bailout_id);

Powered by Google App Engine
This is Rietveld 408576698