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

Side by Side Diff: src/ast.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/ast.h ('k') | src/full-codegen.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 // 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 977 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 entry_id_(AstNode::GetNextId(isolate)) { 988 entry_id_(AstNode::GetNextId(isolate)) {
989 } 989 }
990 990
991 991
992 #define INCREASE_NODE_COUNT(NodeType) \ 992 #define INCREASE_NODE_COUNT(NodeType) \
993 void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ 993 void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
994 increase_node_count(); \ 994 increase_node_count(); \
995 } 995 }
996 996
997 INCREASE_NODE_COUNT(VariableDeclaration) 997 INCREASE_NODE_COUNT(VariableDeclaration)
998 INCREASE_NODE_COUNT(ModuleDeclaration)
999 INCREASE_NODE_COUNT(ModuleLiteral)
1000 INCREASE_NODE_COUNT(ModuleVariable)
1001 INCREASE_NODE_COUNT(ModulePath)
1002 INCREASE_NODE_COUNT(ModuleUrl)
998 INCREASE_NODE_COUNT(Block) 1003 INCREASE_NODE_COUNT(Block)
999 INCREASE_NODE_COUNT(ExpressionStatement) 1004 INCREASE_NODE_COUNT(ExpressionStatement)
1000 INCREASE_NODE_COUNT(EmptyStatement) 1005 INCREASE_NODE_COUNT(EmptyStatement)
1001 INCREASE_NODE_COUNT(IfStatement) 1006 INCREASE_NODE_COUNT(IfStatement)
1002 INCREASE_NODE_COUNT(ContinueStatement) 1007 INCREASE_NODE_COUNT(ContinueStatement)
1003 INCREASE_NODE_COUNT(BreakStatement) 1008 INCREASE_NODE_COUNT(BreakStatement)
1004 INCREASE_NODE_COUNT(ReturnStatement) 1009 INCREASE_NODE_COUNT(ReturnStatement)
1005 INCREASE_NODE_COUNT(Conditional) 1010 INCREASE_NODE_COUNT(Conditional)
1006 INCREASE_NODE_COUNT(Literal) 1011 INCREASE_NODE_COUNT(Literal)
1007 INCREASE_NODE_COUNT(Assignment) 1012 INCREASE_NODE_COUNT(Assignment)
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 (node->name()->IsEqualTo(CStrVector("_ArgumentsLength")) || 1147 (node->name()->IsEqualTo(CStrVector("_ArgumentsLength")) ||
1143 node->name()->IsEqualTo(CStrVector("_Arguments")))) { 1148 node->name()->IsEqualTo(CStrVector("_Arguments")))) {
1144 // Don't inline the %_ArgumentsLength or %_Arguments because their 1149 // Don't inline the %_ArgumentsLength or %_Arguments because their
1145 // implementation will not work. There is no stack frame to get them 1150 // implementation will not work. There is no stack frame to get them
1146 // from. 1151 // from.
1147 add_flag(kDontInline); 1152 add_flag(kDontInline);
1148 } 1153 }
1149 } 1154 }
1150 1155
1151 } } // namespace v8::internal 1156 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698