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

Side by Side Diff: runtime/vm/intrinsifier.cc

Issue 2510783002: VM: Optimize RegExp.matchAsPrefix(...) by generating a sticky RegExp specialization. (Closed)
Patch Set: Done Created 4 years, 1 month 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
« no previous file with comments | « runtime/vm/intrinsifier.h ('k') | runtime/vm/intrinsifier_arm.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 (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
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
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier.h ('k') | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698