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_ASSEMBLER_IR_H_ | 5 #ifndef RUNTIME_VM_REGEXP_ASSEMBLER_IR_H_ |
6 #define RUNTIME_VM_REGEXP_ASSEMBLER_IR_H_ | 6 #define RUNTIME_VM_REGEXP_ASSEMBLER_IR_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/object.h" | 10 #include "vm/object.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 const ParsedFunction* parsed_function, | 33 const ParsedFunction* parsed_function, |
34 const ZoneGrowableArray<const ICData*>& ic_data_array, | 34 const ZoneGrowableArray<const ICData*>& ic_data_array, |
35 Zone* zone); | 35 Zone* zone); |
36 virtual ~IRRegExpMacroAssembler(); | 36 virtual ~IRRegExpMacroAssembler(); |
37 | 37 |
38 virtual bool CanReadUnaligned(); | 38 virtual bool CanReadUnaligned(); |
39 | 39 |
40 static RawArray* Execute(const RegExp& regexp, | 40 static RawArray* Execute(const RegExp& regexp, |
41 const String& input, | 41 const String& input, |
42 const Smi& start_offset, | 42 const Smi& start_offset, |
| 43 bool sticky, |
43 Zone* zone); | 44 Zone* zone); |
44 | 45 |
45 virtual bool IsClosed() const { return (current_instruction_ == NULL); } | 46 virtual bool IsClosed() const { return (current_instruction_ == NULL); } |
46 | 47 |
47 virtual intptr_t stack_limit_slack(); | 48 virtual intptr_t stack_limit_slack(); |
48 virtual void AdvanceCurrentPosition(intptr_t by); | 49 virtual void AdvanceCurrentPosition(intptr_t by); |
49 virtual void AdvanceRegister(intptr_t reg, intptr_t by); | 50 virtual void AdvanceRegister(intptr_t reg, intptr_t by); |
50 virtual void Backtrack(); | 51 virtual void Backtrack(); |
51 virtual void BindBlock(BlockLabel* label); | 52 virtual void BindBlock(BlockLabel* label); |
52 virtual void CheckAtStart(BlockLabel* on_at_start); | 53 virtual void CheckAtStart(BlockLabel* on_at_start); |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
430 IdAllocator temp_id_; | 431 IdAllocator temp_id_; |
431 IdAllocator arg_id_; | 432 IdAllocator arg_id_; |
432 IdAllocator local_id_; | 433 IdAllocator local_id_; |
433 IdAllocator indirect_id_; | 434 IdAllocator indirect_id_; |
434 }; | 435 }; |
435 | 436 |
436 | 437 |
437 } // namespace dart | 438 } // namespace dart |
438 | 439 |
439 #endif // RUNTIME_VM_REGEXP_ASSEMBLER_IR_H_ | 440 #endif // RUNTIME_VM_REGEXP_ASSEMBLER_IR_H_ |
OLD | NEW |