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

Side by Side Diff: src/rewriter.cc

Issue 918373002: Strip Interface class of most of its logic, make it all about Module exports (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Properly freeze interface at the end of ParseModule Created 5 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
« no previous file with comments | « src/prettyprinter.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | 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 // 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 } 199 }
200 200
201 201
202 // Do nothing: 202 // Do nothing:
203 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {} 203 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {}
204 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {} 204 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {}
205 void Processor::VisitModuleDeclaration(ModuleDeclaration* node) {} 205 void Processor::VisitModuleDeclaration(ModuleDeclaration* node) {}
206 void Processor::VisitImportDeclaration(ImportDeclaration* node) {} 206 void Processor::VisitImportDeclaration(ImportDeclaration* node) {}
207 void Processor::VisitExportDeclaration(ExportDeclaration* node) {} 207 void Processor::VisitExportDeclaration(ExportDeclaration* node) {}
208 void Processor::VisitModuleLiteral(ModuleLiteral* node) {} 208 void Processor::VisitModuleLiteral(ModuleLiteral* node) {}
209 void Processor::VisitModuleVariable(ModuleVariable* node) {}
210 void Processor::VisitModulePath(ModulePath* node) {} 209 void Processor::VisitModulePath(ModulePath* node) {}
211 void Processor::VisitModuleUrl(ModuleUrl* node) {} 210 void Processor::VisitModuleUrl(ModuleUrl* node) {}
212 void Processor::VisitEmptyStatement(EmptyStatement* node) {} 211 void Processor::VisitEmptyStatement(EmptyStatement* node) {}
213 void Processor::VisitReturnStatement(ReturnStatement* node) {} 212 void Processor::VisitReturnStatement(ReturnStatement* node) {}
214 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} 213 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {}
215 214
216 215
217 // Expressions are never visited yet. 216 // Expressions are never visited yet.
218 #define DEF_VISIT(type) \ 217 #define DEF_VISIT(type) \
219 void Processor::Visit##type(type* expr) { UNREACHABLE(); } 218 void Processor::Visit##type(type* expr) { UNREACHABLE(); }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 processor.factory()->NewReturnStatement(result_proxy, pos); 254 processor.factory()->NewReturnStatement(result_proxy, pos);
256 body->Add(result_statement, info->zone()); 255 body->Add(result_statement, info->zone());
257 } 256 }
258 } 257 }
259 258
260 return true; 259 return true;
261 } 260 }
262 261
263 262
264 } } // namespace v8::internal 263 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/prettyprinter.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698