OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // Class for intrinsifying functions. | 4 // Class for intrinsifying functions. |
5 | 5 |
6 #include "vm/assembler.h" | 6 #include "vm/assembler.h" |
7 #include "vm/compiler.h" | 7 #include "vm/compiler.h" |
8 #include "vm/cpu.h" | 8 #include "vm/cpu.h" |
9 #include "vm/flags.h" | 9 #include "vm/flags.h" |
10 #include "vm/flow_graph.h" | 10 #include "vm/flow_graph.h" |
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 | 1153 |
1154 bool Intrinsifier::Build_DoubleRound(FlowGraph* flow_graph) { | 1154 bool Intrinsifier::Build_DoubleRound(FlowGraph* flow_graph) { |
1155 if (!FlowGraphCompiler::SupportsUnboxedDoubles()) return false; | 1155 if (!FlowGraphCompiler::SupportsUnboxedDoubles()) return false; |
1156 | 1156 |
1157 GraphEntryInstr* graph_entry = flow_graph->graph_entry(); | 1157 GraphEntryInstr* graph_entry = flow_graph->graph_entry(); |
1158 TargetEntryInstr* normal_entry = graph_entry->normal_entry(); | 1158 TargetEntryInstr* normal_entry = graph_entry->normal_entry(); |
1159 BlockBuilder builder(flow_graph, normal_entry); | 1159 BlockBuilder builder(flow_graph, normal_entry); |
1160 | 1160 |
1161 return BuildInvokeMathCFunction(&builder, MethodRecognizer::kDoubleRound); | 1161 return BuildInvokeMathCFunction(&builder, MethodRecognizer::kDoubleRound); |
1162 } | 1162 } |
| 1163 |
| 1164 |
| 1165 void Intrinsifier::RegExp_ExecuteMatch(Assembler* assembler) { |
| 1166 IntrinsifyRegExpExecuteMatch(assembler, /*sticky=*/false); |
| 1167 } |
| 1168 |
| 1169 |
| 1170 void Intrinsifier::RegExp_ExecuteMatchSticky(Assembler* assembler) { |
| 1171 IntrinsifyRegExpExecuteMatch(assembler, /*sticky=*/true); |
| 1172 } |
1163 #endif // !defined(TARGET_ARCH_DBC) | 1173 #endif // !defined(TARGET_ARCH_DBC) |
1164 | 1174 |
1165 | 1175 |
1166 } // namespace dart | 1176 } // namespace dart |
OLD | NEW |