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

Side by Side Diff: src/ast.cc

Issue 15300018: Add initial parser support for harmony iteration (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase onto current master Created 7 years, 6 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/flag-definitions.h » ('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 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 DONT_OPTIMIZE_NODE(WithStatement) 1149 DONT_OPTIMIZE_NODE(WithStatement)
1150 DONT_OPTIMIZE_NODE(TryCatchStatement) 1150 DONT_OPTIMIZE_NODE(TryCatchStatement)
1151 DONT_OPTIMIZE_NODE(TryFinallyStatement) 1151 DONT_OPTIMIZE_NODE(TryFinallyStatement)
1152 DONT_OPTIMIZE_NODE(DebuggerStatement) 1152 DONT_OPTIMIZE_NODE(DebuggerStatement)
1153 DONT_OPTIMIZE_NODE(SharedFunctionInfoLiteral) 1153 DONT_OPTIMIZE_NODE(SharedFunctionInfoLiteral)
1154 1154
1155 DONT_SELFOPTIMIZE_NODE(DoWhileStatement) 1155 DONT_SELFOPTIMIZE_NODE(DoWhileStatement)
1156 DONT_SELFOPTIMIZE_NODE(WhileStatement) 1156 DONT_SELFOPTIMIZE_NODE(WhileStatement)
1157 DONT_SELFOPTIMIZE_NODE(ForStatement) 1157 DONT_SELFOPTIMIZE_NODE(ForStatement)
1158 DONT_SELFOPTIMIZE_NODE(ForInStatement) 1158 DONT_SELFOPTIMIZE_NODE(ForInStatement)
1159 DONT_SELFOPTIMIZE_NODE(ForOfStatement)
1159 1160
1160 DONT_CACHE_NODE(ModuleLiteral) 1161 DONT_CACHE_NODE(ModuleLiteral)
1161 1162
1162 void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) { 1163 void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) {
1163 increase_node_count(); 1164 increase_node_count();
1164 if (node->is_jsruntime()) { 1165 if (node->is_jsruntime()) {
1165 // Don't try to inline JS runtime calls because we don't (currently) even 1166 // Don't try to inline JS runtime calls because we don't (currently) even
1166 // optimize them. 1167 // optimize them.
1167 add_flag(kDontInline); 1168 add_flag(kDontInline);
1168 } else if (node->function()->intrinsic_type == Runtime::INLINE && 1169 } else if (node->function()->intrinsic_type == Runtime::INLINE &&
(...skipping 25 matching lines...) Expand all
1194 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); 1195 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value());
1195 str = arr; 1196 str = arr;
1196 } else { 1197 } else {
1197 str = DoubleToCString(handle_->Number(), buffer); 1198 str = DoubleToCString(handle_->Number(), buffer);
1198 } 1199 }
1199 return factory->NewStringFromAscii(CStrVector(str)); 1200 return factory->NewStringFromAscii(CStrVector(str));
1200 } 1201 }
1201 1202
1202 1203
1203 } } // namespace v8::internal 1204 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698