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

Side by Side Diff: src/rewriter.cc

Issue 561913002: Class syntax parsing (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add early error checks for static prototype and get/set constructor Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/rewriter.h" 7 #include "src/rewriter.h"
8 8
9 #include "src/ast.h" 9 #include "src/ast.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 void Processor::VisitWithStatement(WithStatement* node) { 199 void Processor::VisitWithStatement(WithStatement* node) {
200 bool set_after_body = is_set_; 200 bool set_after_body = is_set_;
201 Visit(node->statement()); 201 Visit(node->statement());
202 is_set_ = is_set_ && set_after_body; 202 is_set_ = is_set_ && set_after_body;
203 } 203 }
204 204
205 205
206 // Do nothing: 206 // Do nothing:
207 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {} 207 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {}
208 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {} 208 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {}
209 void Processor::VisitClassDeclaration(ClassDeclaration* node) {}
209 void Processor::VisitModuleDeclaration(ModuleDeclaration* node) {} 210 void Processor::VisitModuleDeclaration(ModuleDeclaration* node) {}
210 void Processor::VisitImportDeclaration(ImportDeclaration* node) {} 211 void Processor::VisitImportDeclaration(ImportDeclaration* node) {}
211 void Processor::VisitExportDeclaration(ExportDeclaration* node) {} 212 void Processor::VisitExportDeclaration(ExportDeclaration* node) {}
212 void Processor::VisitModuleLiteral(ModuleLiteral* node) {} 213 void Processor::VisitModuleLiteral(ModuleLiteral* node) {}
213 void Processor::VisitModuleVariable(ModuleVariable* node) {} 214 void Processor::VisitModuleVariable(ModuleVariable* node) {}
214 void Processor::VisitModulePath(ModulePath* node) {} 215 void Processor::VisitModulePath(ModulePath* node) {}
215 void Processor::VisitModuleUrl(ModuleUrl* node) {} 216 void Processor::VisitModuleUrl(ModuleUrl* node) {}
216 void Processor::VisitEmptyStatement(EmptyStatement* node) {} 217 void Processor::VisitEmptyStatement(EmptyStatement* node) {}
217 void Processor::VisitReturnStatement(ReturnStatement* node) {} 218 void Processor::VisitReturnStatement(ReturnStatement* node) {}
218 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} 219 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {}
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 processor.factory()->NewReturnStatement(result_proxy, pos); 261 processor.factory()->NewReturnStatement(result_proxy, pos);
261 body->Add(result_statement, info->zone()); 262 body->Add(result_statement, info->zone());
262 } 263 }
263 } 264 }
264 265
265 return true; 266 return true;
266 } 267 }
267 268
268 269
269 } } // namespace v8::internal 270 } } // namespace v8::internal
OLDNEW
« src/preparser.h ('K') | « src/prettyprinter.cc ('k') | src/scanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698