| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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_BYTECODE_H_ | 5 #ifndef VM_REGEXP_ASSEMBLER_BYTECODE_H_ |
| 6 #define VM_REGEXP_ASSEMBLER_BYTECODE_H_ | 6 #define VM_REGEXP_ASSEMBLER_BYTECODE_H_ |
| 7 | 7 |
| 8 #include "vm/object.h" | 8 #include "vm/object.h" |
| 9 #include "vm/regexp_assembler.h" | 9 #include "vm/regexp_assembler.h" |
| 10 | 10 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // New | 98 // New |
| 99 virtual bool IsClosed() const { | 99 virtual bool IsClosed() const { |
| 100 // Added by Dart for the IR version. Bytecode version should never need an | 100 // Added by Dart for the IR version. Bytecode version should never need an |
| 101 // extra goto. | 101 // extra goto. |
| 102 return true; | 102 return true; |
| 103 } | 103 } |
| 104 virtual void Print(const char* str) { UNIMPLEMENTED(); } | 104 virtual void Print(const char* str) { UNIMPLEMENTED(); } |
| 105 virtual void PrintBlocks() { UNIMPLEMENTED(); } | 105 virtual void PrintBlocks() { UNIMPLEMENTED(); } |
| 106 ///// | 106 ///// |
| 107 | 107 |
| 108 static RawInstance* Interpret(const JSRegExp& regexp, | 108 static RawInstance* Interpret(const RegExp& regexp, |
| 109 const String& str, | 109 const String& str, |
| 110 const Smi& start_index, | 110 const Smi& start_index, |
| 111 Zone* zone); | 111 Zone* zone); |
| 112 | 112 |
| 113 private: | 113 private: |
| 114 void Expand(); | 114 void Expand(); |
| 115 // Code and bitmap emission. | 115 // Code and bitmap emission. |
| 116 inline void EmitOrLink(BlockLabel* label); | 116 inline void EmitOrLink(BlockLabel* label); |
| 117 inline void Emit32(uint32_t x); | 117 inline void Emit32(uint32_t x); |
| 118 inline void Emit16(uint32_t x); | 118 inline void Emit16(uint32_t x); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 135 | 135 |
| 136 static const int kInvalidPC = -1; | 136 static const int kInvalidPC = -1; |
| 137 | 137 |
| 138 DISALLOW_IMPLICIT_CONSTRUCTORS(BytecodeRegExpMacroAssembler); | 138 DISALLOW_IMPLICIT_CONSTRUCTORS(BytecodeRegExpMacroAssembler); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 | 141 |
| 142 } // namespace dart | 142 } // namespace dart |
| 143 | 143 |
| 144 #endif // VM_REGEXP_ASSEMBLER_BYTECODE_H_ | 144 #endif // VM_REGEXP_ASSEMBLER_BYTECODE_H_ |
| OLD | NEW |