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

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

Issue 2142333002: Refactor class declaration logic to the parser and runtime Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: minor cleanup per Adam Created 4 years, 5 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/full-codegen/full-codegen.h
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h
index 085ad0d640c8eab9274ce96803778823d9d7f18d..84635a1cd0743bba59c90ae9c50dd43809838117 100644
--- a/src/full-codegen/full-codegen.h
+++ b/src/full-codegen/full-codegen.h
@@ -201,23 +201,6 @@ class FullCodeGenerator: public AstVisitor {
}
};
- // A class literal expression
- class NestedClassLiteral : public NestedStatement {
- public:
- NestedClassLiteral(FullCodeGenerator* codegen, ClassLiteral* lit)
- : NestedStatement(codegen),
- needs_context_(lit->scope() != nullptr &&
- lit->scope()->NeedsContext()) {}
-
- NestedStatement* Exit(int* context_length) override {
- if (needs_context_) ++(*context_length);
- return previous_;
- }
-
- private:
- const bool needs_context_;
- };
-
class DeferredCommands {
public:
enum Command { kReturn, kThrow, kBreak, kContinue };
@@ -583,11 +566,6 @@ class FullCodeGenerator: public AstVisitor {
// The receiver and the key is left on the stack by the IC.
void EmitKeyedPropertyLoad(Property* expr);
- // Adds the properties to the class (function) object and to its prototype.
- // Expects the class (function) in the accumulator. The class (function) is
- // in the accumulator after installing all the properties.
- void EmitClassDefineProperties(ClassLiteral* lit);
-
// Pushes the property key as a Name on the stack.
void EmitPropertyKey(ObjectLiteralProperty* property, BailoutId bailout_id);

Powered by Google App Engine
This is Rietveld 408576698