OLD | NEW |
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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 REGULAR_NODE(ExpressionStatement) | 1040 REGULAR_NODE(ExpressionStatement) |
1041 REGULAR_NODE(EmptyStatement) | 1041 REGULAR_NODE(EmptyStatement) |
1042 REGULAR_NODE(IfStatement) | 1042 REGULAR_NODE(IfStatement) |
1043 REGULAR_NODE(ContinueStatement) | 1043 REGULAR_NODE(ContinueStatement) |
1044 REGULAR_NODE(BreakStatement) | 1044 REGULAR_NODE(BreakStatement) |
1045 REGULAR_NODE(ReturnStatement) | 1045 REGULAR_NODE(ReturnStatement) |
1046 REGULAR_NODE(SwitchStatement) | 1046 REGULAR_NODE(SwitchStatement) |
1047 REGULAR_NODE(Conditional) | 1047 REGULAR_NODE(Conditional) |
1048 REGULAR_NODE(Literal) | 1048 REGULAR_NODE(Literal) |
1049 REGULAR_NODE(ObjectLiteral) | 1049 REGULAR_NODE(ObjectLiteral) |
| 1050 REGULAR_NODE(RegExpLiteral) |
1050 REGULAR_NODE(Assignment) | 1051 REGULAR_NODE(Assignment) |
1051 REGULAR_NODE(Throw) | 1052 REGULAR_NODE(Throw) |
1052 REGULAR_NODE(Property) | 1053 REGULAR_NODE(Property) |
1053 REGULAR_NODE(UnaryOperation) | 1054 REGULAR_NODE(UnaryOperation) |
1054 REGULAR_NODE(CountOperation) | 1055 REGULAR_NODE(CountOperation) |
1055 REGULAR_NODE(BinaryOperation) | 1056 REGULAR_NODE(BinaryOperation) |
1056 REGULAR_NODE(CompareOperation) | 1057 REGULAR_NODE(CompareOperation) |
1057 REGULAR_NODE(ThisFunction) | 1058 REGULAR_NODE(ThisFunction) |
1058 REGULAR_NODE(Call) | 1059 REGULAR_NODE(Call) |
1059 REGULAR_NODE(CallNew) | 1060 REGULAR_NODE(CallNew) |
(...skipping 10 matching lines...) Expand all Loading... |
1070 DONT_OPTIMIZE_NODE(ModuleVariable) | 1071 DONT_OPTIMIZE_NODE(ModuleVariable) |
1071 DONT_OPTIMIZE_NODE(ModulePath) | 1072 DONT_OPTIMIZE_NODE(ModulePath) |
1072 DONT_OPTIMIZE_NODE(ModuleUrl) | 1073 DONT_OPTIMIZE_NODE(ModuleUrl) |
1073 DONT_OPTIMIZE_NODE(WithStatement) | 1074 DONT_OPTIMIZE_NODE(WithStatement) |
1074 DONT_OPTIMIZE_NODE(TryCatchStatement) | 1075 DONT_OPTIMIZE_NODE(TryCatchStatement) |
1075 DONT_OPTIMIZE_NODE(TryFinallyStatement) | 1076 DONT_OPTIMIZE_NODE(TryFinallyStatement) |
1076 DONT_OPTIMIZE_NODE(DebuggerStatement) | 1077 DONT_OPTIMIZE_NODE(DebuggerStatement) |
1077 DONT_OPTIMIZE_NODE(SharedFunctionInfoLiteral) | 1078 DONT_OPTIMIZE_NODE(SharedFunctionInfoLiteral) |
1078 | 1079 |
1079 DONT_INLINE_NODE(FunctionLiteral) | 1080 DONT_INLINE_NODE(FunctionLiteral) |
1080 DONT_INLINE_NODE(RegExpLiteral) // TODO(1322): Allow materialized literals. | |
1081 DONT_INLINE_NODE(ArrayLiteral) // TODO(1322): Allow materialized literals. | 1081 DONT_INLINE_NODE(ArrayLiteral) // TODO(1322): Allow materialized literals. |
1082 | 1082 |
1083 DONT_SELFOPTIMIZE_NODE(DoWhileStatement) | 1083 DONT_SELFOPTIMIZE_NODE(DoWhileStatement) |
1084 DONT_SELFOPTIMIZE_NODE(WhileStatement) | 1084 DONT_SELFOPTIMIZE_NODE(WhileStatement) |
1085 DONT_SELFOPTIMIZE_NODE(ForStatement) | 1085 DONT_SELFOPTIMIZE_NODE(ForStatement) |
1086 DONT_SELFOPTIMIZE_NODE(ForInStatement) | 1086 DONT_SELFOPTIMIZE_NODE(ForInStatement) |
1087 | 1087 |
1088 void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) { | 1088 void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) { |
1089 increase_node_count(); | 1089 increase_node_count(); |
1090 if (node->is_jsruntime()) { | 1090 if (node->is_jsruntime()) { |
(...skipping 27 matching lines...) Expand all Loading... |
1118 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); | 1118 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); |
1119 str = arr; | 1119 str = arr; |
1120 } else { | 1120 } else { |
1121 str = DoubleToCString(handle_->Number(), buffer); | 1121 str = DoubleToCString(handle_->Number(), buffer); |
1122 } | 1122 } |
1123 return FACTORY->NewStringFromAscii(CStrVector(str)); | 1123 return FACTORY->NewStringFromAscii(CStrVector(str)); |
1124 } | 1124 } |
1125 | 1125 |
1126 | 1126 |
1127 } } // namespace v8::internal | 1127 } } // namespace v8::internal |
OLD | NEW |