Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: runtime/vm/regexp_assembler_bytecode.h

Issue 1815333002: Simpler regex names: (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/regexp.cc ('k') | runtime/vm/regexp_assembler_bytecode.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/regexp.cc ('k') | runtime/vm/regexp_assembler_bytecode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698