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

Side by Side Diff: src/ast.cc

Issue 9496003: AST extensions and parsing for import & export declarations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 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 // 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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 998
999 999
1000 #define INCREASE_NODE_COUNT(NodeType) \ 1000 #define INCREASE_NODE_COUNT(NodeType) \
1001 void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ 1001 void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
1002 increase_node_count(); \ 1002 increase_node_count(); \
1003 } 1003 }
1004 1004
1005 INCREASE_NODE_COUNT(VariableDeclaration) 1005 INCREASE_NODE_COUNT(VariableDeclaration)
1006 INCREASE_NODE_COUNT(FunctionDeclaration) 1006 INCREASE_NODE_COUNT(FunctionDeclaration)
1007 INCREASE_NODE_COUNT(ModuleDeclaration) 1007 INCREASE_NODE_COUNT(ModuleDeclaration)
1008 INCREASE_NODE_COUNT(ImportDeclaration)
1009 INCREASE_NODE_COUNT(ExportDeclaration)
1008 INCREASE_NODE_COUNT(ModuleLiteral) 1010 INCREASE_NODE_COUNT(ModuleLiteral)
1009 INCREASE_NODE_COUNT(ModuleVariable) 1011 INCREASE_NODE_COUNT(ModuleVariable)
1010 INCREASE_NODE_COUNT(ModulePath) 1012 INCREASE_NODE_COUNT(ModulePath)
1011 INCREASE_NODE_COUNT(ModuleUrl) 1013 INCREASE_NODE_COUNT(ModuleUrl)
1012 INCREASE_NODE_COUNT(Block) 1014 INCREASE_NODE_COUNT(Block)
1013 INCREASE_NODE_COUNT(ExpressionStatement) 1015 INCREASE_NODE_COUNT(ExpressionStatement)
1014 INCREASE_NODE_COUNT(EmptyStatement) 1016 INCREASE_NODE_COUNT(EmptyStatement)
1015 INCREASE_NODE_COUNT(IfStatement) 1017 INCREASE_NODE_COUNT(IfStatement)
1016 INCREASE_NODE_COUNT(ContinueStatement) 1018 INCREASE_NODE_COUNT(ContinueStatement)
1017 INCREASE_NODE_COUNT(BreakStatement) 1019 INCREASE_NODE_COUNT(BreakStatement)
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 (node->name()->IsEqualTo(CStrVector("_ArgumentsLength")) || 1142 (node->name()->IsEqualTo(CStrVector("_ArgumentsLength")) ||
1141 node->name()->IsEqualTo(CStrVector("_Arguments")))) { 1143 node->name()->IsEqualTo(CStrVector("_Arguments")))) {
1142 // Don't inline the %_ArgumentsLength or %_Arguments because their 1144 // Don't inline the %_ArgumentsLength or %_Arguments because their
1143 // implementation will not work. There is no stack frame to get them 1145 // implementation will not work. There is no stack frame to get them
1144 // from. 1146 // from.
1145 add_flag(kDontInline); 1147 add_flag(kDontInline);
1146 } 1148 }
1147 } 1149 }
1148 1150
1149 } } // namespace v8::internal 1151 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/full-codegen.cc » ('j') | test/mjsunit/harmony/module-parsing.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698