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

Side by Side Diff: src/ast.cc

Issue 547343002: Properly blacklist ES6 for-of statement for TurboFan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | 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 // 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/ast.h" 5 #include "src/ast.h"
6 6
7 #include <cmath> // For isfinite. 7 #include <cmath> // For isfinite.
8 #include "src/builtins.h" 8 #include "src/builtins.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/contexts.h" 10 #include "src/contexts.h"
(...skipping 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 1075
1076 // We currently do not optimize any modules. 1076 // We currently do not optimize any modules.
1077 DONT_OPTIMIZE_NODE(ModuleDeclaration) 1077 DONT_OPTIMIZE_NODE(ModuleDeclaration)
1078 DONT_OPTIMIZE_NODE(ImportDeclaration) 1078 DONT_OPTIMIZE_NODE(ImportDeclaration)
1079 DONT_OPTIMIZE_NODE(ExportDeclaration) 1079 DONT_OPTIMIZE_NODE(ExportDeclaration)
1080 DONT_OPTIMIZE_NODE(ModuleVariable) 1080 DONT_OPTIMIZE_NODE(ModuleVariable)
1081 DONT_OPTIMIZE_NODE(ModulePath) 1081 DONT_OPTIMIZE_NODE(ModulePath)
1082 DONT_OPTIMIZE_NODE(ModuleUrl) 1082 DONT_OPTIMIZE_NODE(ModuleUrl)
1083 DONT_OPTIMIZE_NODE(ModuleStatement) 1083 DONT_OPTIMIZE_NODE(ModuleStatement)
1084 DONT_OPTIMIZE_NODE(WithStatement) 1084 DONT_OPTIMIZE_NODE(WithStatement)
1085 DONT_OPTIMIZE_NODE(ForOfStatement)
1085 DONT_OPTIMIZE_NODE(TryCatchStatement) 1086 DONT_OPTIMIZE_NODE(TryCatchStatement)
1086 DONT_OPTIMIZE_NODE(TryFinallyStatement) 1087 DONT_OPTIMIZE_NODE(TryFinallyStatement)
1087 DONT_OPTIMIZE_NODE(DebuggerStatement) 1088 DONT_OPTIMIZE_NODE(DebuggerStatement)
1088 DONT_OPTIMIZE_NODE(NativeFunctionLiteral) 1089 DONT_OPTIMIZE_NODE(NativeFunctionLiteral)
1089 DONT_OPTIMIZE_NODE(SuperReference) 1090 DONT_OPTIMIZE_NODE(SuperReference)
1090 1091
1091 DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(Yield) 1092 DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(Yield)
1092 1093
1093 DONT_SELFOPTIMIZE_NODE(DoWhileStatement) 1094 DONT_SELFOPTIMIZE_NODE(DoWhileStatement)
1094 DONT_SELFOPTIMIZE_NODE(WhileStatement) 1095 DONT_SELFOPTIMIZE_NODE(WhileStatement)
1095 DONT_SELFOPTIMIZE_NODE(ForStatement) 1096 DONT_SELFOPTIMIZE_NODE(ForStatement)
1096 DONT_SELFOPTIMIZE_NODE(ForOfStatement)
1097 1097
1098 DONT_SELFOPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(ForInStatement) 1098 DONT_SELFOPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(ForInStatement)
1099 1099
1100 DONT_CACHE_NODE(ModuleLiteral) 1100 DONT_CACHE_NODE(ModuleLiteral)
1101 1101
1102 1102
1103 void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) { 1103 void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) {
1104 increase_node_count(); 1104 increase_node_count();
1105 add_slot_node(node); 1105 add_slot_node(node);
1106 if (node->is_jsruntime()) { 1106 if (node->is_jsruntime()) {
(...skipping 19 matching lines...) Expand all
1126 SNPrintF(buffer, "%d", Smi::cast(*value())->value()); 1126 SNPrintF(buffer, "%d", Smi::cast(*value())->value());
1127 str = arr; 1127 str = arr;
1128 } else { 1128 } else {
1129 str = DoubleToCString(value()->Number(), buffer); 1129 str = DoubleToCString(value()->Number(), buffer);
1130 } 1130 }
1131 return isolate_->factory()->NewStringFromAsciiChecked(str); 1131 return isolate_->factory()->NewStringFromAsciiChecked(str);
1132 } 1132 }
1133 1133
1134 1134
1135 } } // namespace v8::internal 1135 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698