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

Side by Side Diff: runtime/vm/regexp.h

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/raw_object_snapshot.cc ('k') | runtime/vm/regexp.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 4
5 #ifndef RUNTIME_VM_REGEXP_H_ 5 #ifndef RUNTIME_VM_REGEXP_H_
6 #define RUNTIME_VM_REGEXP_H_ 6 #define RUNTIME_VM_REGEXP_H_
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 #include "vm/flow_graph_compiler.h" 10 #include "vm/flow_graph_compiler.h"
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 }; 1391 };
1392 1392
1393 static CompilationResult CompileIR( 1393 static CompilationResult CompileIR(
1394 RegExpCompileData* input, 1394 RegExpCompileData* input,
1395 const ParsedFunction* parsed_function, 1395 const ParsedFunction* parsed_function,
1396 const ZoneGrowableArray<const ICData*>& ic_data_array); 1396 const ZoneGrowableArray<const ICData*>& ic_data_array);
1397 1397
1398 static CompilationResult CompileBytecode(RegExpCompileData* data, 1398 static CompilationResult CompileBytecode(RegExpCompileData* data,
1399 const RegExp& regexp, 1399 const RegExp& regexp,
1400 bool is_one_byte, 1400 bool is_one_byte,
1401 bool sticky,
1401 Zone* zone); 1402 Zone* zone);
1402 1403
1403 static RawRegExp* CreateRegExp(Thread* thread, 1404 static RawRegExp* CreateRegExp(Thread* thread,
1404 const String& pattern, 1405 const String& pattern,
1405 bool multi_line, 1406 bool multi_line,
1406 bool ignore_case); 1407 bool ignore_case);
1407 1408
1408 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); 1409 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case);
1409 }; 1410 };
1410 1411
1411 } // namespace dart 1412 } // namespace dart
1412 1413
1413 #endif // RUNTIME_VM_REGEXP_H_ 1414 #endif // RUNTIME_VM_REGEXP_H_
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698