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

Side by Side Diff: src/rewriter.cc

Issue 9373023: Extend AST with basic module constructs (yet unused). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addresses Jakob's comments. Created 8 years, 10 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
« no previous file with comments | « src/prettyprinter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 void Processor::VisitWithStatement(WithStatement* node) { 204 void Processor::VisitWithStatement(WithStatement* node) {
205 bool set_after_body = is_set_; 205 bool set_after_body = is_set_;
206 Visit(node->statement()); 206 Visit(node->statement());
207 is_set_ = is_set_ && set_after_body; 207 is_set_ = is_set_ && set_after_body;
208 } 208 }
209 209
210 210
211 // Do nothing: 211 // Do nothing:
212 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {} 212 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {}
213 void Processor::VisitModuleDeclaration(ModuleDeclaration* node) {}
214 void Processor::VisitModuleLiteral(ModuleLiteral* node) {}
215 void Processor::VisitModuleVariable(ModuleVariable* node) {}
216 void Processor::VisitModulePath(ModulePath* node) {}
217 void Processor::VisitModuleUrl(ModuleUrl* node) {}
213 void Processor::VisitEmptyStatement(EmptyStatement* node) {} 218 void Processor::VisitEmptyStatement(EmptyStatement* node) {}
214 void Processor::VisitReturnStatement(ReturnStatement* node) {} 219 void Processor::VisitReturnStatement(ReturnStatement* node) {}
215 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} 220 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {}
216 221
217 222
218 // Expressions are never visited yet. 223 // Expressions are never visited yet.
219 #define DEF_VISIT(type) \ 224 #define DEF_VISIT(type) \
220 void Processor::Visit##type(type* expr) { UNREACHABLE(); } 225 void Processor::Visit##type(type* expr) { UNREACHABLE(); }
221 EXPRESSION_NODE_LIST(DEF_VISIT) 226 EXPRESSION_NODE_LIST(DEF_VISIT)
222 #undef DEF_VISIT 227 #undef DEF_VISIT
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 result_statement->set_statement_pos(position); 261 result_statement->set_statement_pos(position);
257 body->Add(result_statement); 262 body->Add(result_statement);
258 } 263 }
259 } 264 }
260 265
261 return true; 266 return true;
262 } 267 }
263 268
264 269
265 } } // namespace v8::internal 270 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/prettyprinter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698