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

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

Issue 2176653003: Wrap ClassLiterals in DoExpressions instead of giving them BlockScopes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comments 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
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/full-codegen.h
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h
index 876ce6c0b977bc74e60aa79ea7533d6a2d781919..cb2edaf157ea4d08de1d6a510522ea4bc57431e8 100644
--- a/src/full-codegen/full-codegen.h
+++ b/src/full-codegen/full-codegen.h
@@ -201,23 +201,6 @@ class FullCodeGenerator final : public AstVisitor<FullCodeGenerator> {
}
};
- // 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 };
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698