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 #include "vm/regexp_assembler.h" | 5 #include "vm/regexp_assembler.h" |
6 | 6 |
| 7 #include "vm/flags.h" |
7 #include "vm/regexp.h" | 8 #include "vm/regexp.h" |
8 | 9 |
9 namespace dart { | 10 namespace dart { |
10 | 11 |
| 12 BlockLabel::BlockLabel() |
| 13 : block_(NULL), |
| 14 is_bound_(false), |
| 15 is_linked_(false), |
| 16 pos_(-1) { |
| 17 if (!FLAG_interpret_irregexp) { |
| 18 // Only needed by the compiled IR backend. |
| 19 block_ = new JoinEntryInstr(-1, -1); |
| 20 } |
| 21 } |
| 22 |
| 23 |
11 RegExpMacroAssembler::RegExpMacroAssembler(Zone* zone) | 24 RegExpMacroAssembler::RegExpMacroAssembler(Zone* zone) |
12 : slow_safe_compiler_(false), | 25 : slow_safe_compiler_(false), |
13 global_mode_(NOT_GLOBAL), | 26 global_mode_(NOT_GLOBAL), |
14 zone_(zone) { | 27 zone_(zone) { |
15 } | 28 } |
16 | 29 |
17 | 30 |
18 RegExpMacroAssembler::~RegExpMacroAssembler() { | 31 RegExpMacroAssembler::~RegExpMacroAssembler() { |
19 } | 32 } |
20 | 33 |
21 } // namespace dart | 34 } // namespace dart |
OLD | NEW |