OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |