Chromium Code Reviews| Index: src/full-codegen.cc |
| diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
| index aee5ca72a165084c4e1a03eb3b41448b3b894140..5ce77bb330de8ad4578d6ef4e8949370b92a5cf6 100644 |
| --- a/src/full-codegen.cc |
| +++ b/src/full-codegen.cc |
| @@ -32,18 +32,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) { |
| } |
| @@ -177,6 +181,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()); |
|
arv (Not doing code reviews)
2014/09/15 15:12:32
Another option would be to throw `new Error('Not y
rossberg
2014/09/16 15:25:40
No, I actually like this better. It allows you to
|
| +} |
| + |
| + |
| void FullCodeGenerator::VisitNativeFunctionLiteral( |
| NativeFunctionLiteral* expr) { |
| Comment cmnt(masm_, "[ NativeFunctionLiteral"); |