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 VM_REGEXP_ASSEMBLER_IR_H_ | 5 #ifndef VM_REGEXP_ASSEMBLER_IR_H_ |
6 #define VM_REGEXP_ASSEMBLER_IR_H_ | 6 #define 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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 IRRegExpMacroAssembler(intptr_t specialization_cid, | 31 IRRegExpMacroAssembler(intptr_t specialization_cid, |
32 intptr_t capture_count, | 32 intptr_t capture_count, |
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 JSRegExp& 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 Zone* zone); | 43 Zone* zone); |
44 | 44 |
45 virtual bool IsClosed() const { return (current_instruction_ == NULL); } | 45 virtual bool IsClosed() const { return (current_instruction_ == NULL); } |
46 | 46 |
47 virtual intptr_t stack_limit_slack(); | 47 virtual intptr_t stack_limit_slack(); |
48 virtual void AdvanceCurrentPosition(intptr_t by); | 48 virtual void AdvanceCurrentPosition(intptr_t by); |
49 virtual void AdvanceRegister(intptr_t reg, intptr_t by); | 49 virtual void AdvanceRegister(intptr_t reg, intptr_t by); |
50 virtual void Backtrack(); | 50 virtual void Backtrack(); |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 IdAllocator temp_id_; | 426 IdAllocator temp_id_; |
427 IdAllocator arg_id_; | 427 IdAllocator arg_id_; |
428 IdAllocator local_id_; | 428 IdAllocator local_id_; |
429 IdAllocator indirect_id_; | 429 IdAllocator indirect_id_; |
430 }; | 430 }; |
431 | 431 |
432 | 432 |
433 } // namespace dart | 433 } // namespace dart |
434 | 434 |
435 #endif // VM_REGEXP_ASSEMBLER_IR_H_ | 435 #endif // VM_REGEXP_ASSEMBLER_IR_H_ |
OLD | NEW |