Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 40e8c1d9a69aa6a22aeec5bb665603dad2176df0..c1642b1980da4d6be40b708a4c65bb6331f7491f 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -33,18 +33,22 @@ void BreakableStatementChecker::VisitVariableDeclaration( |
VariableDeclaration* decl) { |
} |
+ |
void BreakableStatementChecker::VisitFunctionDeclaration( |
FunctionDeclaration* decl) { |
} |
+ |
void BreakableStatementChecker::VisitModuleDeclaration( |
ModuleDeclaration* decl) { |
} |
+ |
void BreakableStatementChecker::VisitImportDeclaration( |
ImportDeclaration* decl) { |
} |
+ |
void BreakableStatementChecker::VisitExportDeclaration( |
ExportDeclaration* decl) { |
} |
@@ -178,6 +182,13 @@ void BreakableStatementChecker::VisitFunctionLiteral(FunctionLiteral* expr) { |
} |
+void BreakableStatementChecker::VisitClassLiteral(ClassLiteral* expr) { |
+ if (expr->extends() != NULL) { |
+ Visit(expr->extends()); |
+ } |
+} |
+ |
+ |
void BreakableStatementChecker::VisitNativeFunctionLiteral( |
NativeFunctionLiteral* expr) { |
} |
@@ -1531,6 +1542,16 @@ void FullCodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
} |
+void FullCodeGenerator::VisitClassLiteral(ClassLiteral* expr) { |
+ // TODO(arv): Implement |
+ Comment cmnt(masm_, "[ ClassLiteral"); |
+ if (expr->extends() != NULL) { |
+ VisitForEffect(expr->extends()); |
+ } |
+ context()->Plug(isolate()->factory()->undefined_value()); |
+} |
+ |
+ |
void FullCodeGenerator::VisitNativeFunctionLiteral( |
NativeFunctionLiteral* expr) { |
Comment cmnt(masm_, "[ NativeFunctionLiteral"); |