OLD | NEW |
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 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1386 | 1386 |
1387 const char* error_message; | 1387 const char* error_message; |
1388 | 1388 |
1389 TypedData* bytecode; | 1389 TypedData* bytecode; |
1390 intptr_t num_registers; | 1390 intptr_t num_registers; |
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 intptr_t osr_id); |
1397 | 1398 |
1398 static CompilationResult CompileBytecode(RegExpCompileData* data, | 1399 static CompilationResult CompileBytecode(RegExpCompileData* data, |
1399 const RegExp& regexp, | 1400 const RegExp& regexp, |
1400 bool is_one_byte, | 1401 bool is_one_byte, |
1401 bool sticky, | 1402 bool sticky, |
1402 Zone* zone); | 1403 Zone* zone); |
1403 | 1404 |
1404 static RawRegExp* CreateRegExp(Thread* thread, | 1405 static RawRegExp* CreateRegExp(Thread* thread, |
1405 const String& pattern, | 1406 const String& pattern, |
1406 bool multi_line, | 1407 bool multi_line, |
1407 bool ignore_case); | 1408 bool ignore_case); |
1408 | 1409 |
1409 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); | 1410 static void DotPrint(const char* label, RegExpNode* node, bool ignore_case); |
1410 }; | 1411 }; |
1411 | 1412 |
1412 } // namespace dart | 1413 } // namespace dart |
1413 | 1414 |
1414 #endif // RUNTIME_VM_REGEXP_H_ | 1415 #endif // RUNTIME_VM_REGEXP_H_ |
OLD | NEW |