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

Side by Side Diff: src/ast.cc

Issue 13179002: Add parser support for generators. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: added additional syntax tests Created 7 years, 8 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/ast.h ('k') | src/compiler.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 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 REGULAR_NODE(VariableProxy) 1055 REGULAR_NODE(VariableProxy)
1056 1056
1057 // We currently do not optimize any modules. 1057 // We currently do not optimize any modules.
1058 DONT_OPTIMIZE_NODE(ModuleDeclaration) 1058 DONT_OPTIMIZE_NODE(ModuleDeclaration)
1059 DONT_OPTIMIZE_NODE(ImportDeclaration) 1059 DONT_OPTIMIZE_NODE(ImportDeclaration)
1060 DONT_OPTIMIZE_NODE(ExportDeclaration) 1060 DONT_OPTIMIZE_NODE(ExportDeclaration)
1061 DONT_OPTIMIZE_NODE(ModuleVariable) 1061 DONT_OPTIMIZE_NODE(ModuleVariable)
1062 DONT_OPTIMIZE_NODE(ModulePath) 1062 DONT_OPTIMIZE_NODE(ModulePath)
1063 DONT_OPTIMIZE_NODE(ModuleUrl) 1063 DONT_OPTIMIZE_NODE(ModuleUrl)
1064 DONT_OPTIMIZE_NODE(ModuleStatement) 1064 DONT_OPTIMIZE_NODE(ModuleStatement)
1065 DONT_OPTIMIZE_NODE(Yield)
1065 DONT_OPTIMIZE_NODE(WithStatement) 1066 DONT_OPTIMIZE_NODE(WithStatement)
1066 DONT_OPTIMIZE_NODE(TryCatchStatement) 1067 DONT_OPTIMIZE_NODE(TryCatchStatement)
1067 DONT_OPTIMIZE_NODE(TryFinallyStatement) 1068 DONT_OPTIMIZE_NODE(TryFinallyStatement)
1068 DONT_OPTIMIZE_NODE(DebuggerStatement) 1069 DONT_OPTIMIZE_NODE(DebuggerStatement)
1069 DONT_OPTIMIZE_NODE(SharedFunctionInfoLiteral) 1070 DONT_OPTIMIZE_NODE(SharedFunctionInfoLiteral)
1070 1071
1071 DONT_SELFOPTIMIZE_NODE(DoWhileStatement) 1072 DONT_SELFOPTIMIZE_NODE(DoWhileStatement)
1072 DONT_SELFOPTIMIZE_NODE(WhileStatement) 1073 DONT_SELFOPTIMIZE_NODE(WhileStatement)
1073 DONT_SELFOPTIMIZE_NODE(ForStatement) 1074 DONT_SELFOPTIMIZE_NODE(ForStatement)
1074 DONT_SELFOPTIMIZE_NODE(ForInStatement) 1075 DONT_SELFOPTIMIZE_NODE(ForInStatement)
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); 1110 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value());
1110 str = arr; 1111 str = arr;
1111 } else { 1112 } else {
1112 str = DoubleToCString(handle_->Number(), buffer); 1113 str = DoubleToCString(handle_->Number(), buffer);
1113 } 1114 }
1114 return FACTORY->NewStringFromAscii(CStrVector(str)); 1115 return FACTORY->NewStringFromAscii(CStrVector(str));
1115 } 1116 }
1116 1117
1117 1118
1118 } } // namespace v8::internal 1119 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698