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

Side by Side Diff: src/regexp/regexp-macro-assembler.h

Issue 1528843002: [regexp] remove some dead code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 | « no previous file | src/regexp/regexp-macro-assembler-tracer.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ 5 #ifndef V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_
6 #define V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ 6 #define V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void CheckCharacterNotInRange(uc16 from, 97 virtual void CheckCharacterNotInRange(uc16 from,
98 uc16 to, // Both inclusive. 98 uc16 to, // Both inclusive.
99 Label* on_not_in_range) = 0; 99 Label* on_not_in_range) = 0;
100 100
101 // The current character (modulus the kTableSize) is looked up in the byte 101 // The current character (modulus the kTableSize) is looked up in the byte
102 // array, and if the found byte is non-zero, we jump to the on_bit_set label. 102 // array, and if the found byte is non-zero, we jump to the on_bit_set label.
103 virtual void CheckBitInTable(Handle<ByteArray> table, Label* on_bit_set) = 0; 103 virtual void CheckBitInTable(Handle<ByteArray> table, Label* on_bit_set) = 0;
104 104
105 // Checks whether the given offset from the current position is before 105 // Checks whether the given offset from the current position is before
106 // the end of the string. May overwrite the current character. 106 // the end of the string. May overwrite the current character.
107 virtual void CheckPosition(int cp_offset, Label* on_outside_input) { 107 virtual void CheckPosition(int cp_offset, Label* on_outside_input) = 0;
108 LoadCurrentCharacter(cp_offset, on_outside_input, true);
109 }
110 // Check whether a standard/default character class matches the current 108 // Check whether a standard/default character class matches the current
111 // character. Returns false if the type of special character class does 109 // character. Returns false if the type of special character class does
112 // not have custom support. 110 // not have custom support.
113 // May clobber the current loaded character. 111 // May clobber the current loaded character.
114 virtual bool CheckSpecialCharacterClass(uc16 type, 112 virtual bool CheckSpecialCharacterClass(uc16 type, Label* on_no_match) = 0;
115 Label* on_no_match) {
116 return false;
117 }
118 virtual void Fail() = 0; 113 virtual void Fail() = 0;
119 virtual Handle<HeapObject> GetCode(Handle<String> source) = 0; 114 virtual Handle<HeapObject> GetCode(Handle<String> source) = 0;
120 virtual void GoTo(Label* label) = 0; 115 virtual void GoTo(Label* label) = 0;
121 // Check whether a register is >= a given constant and go to a label if it 116 // Check whether a register is >= a given constant and go to a label if it
122 // is. Backtracks instead if the label is NULL. 117 // is. Backtracks instead if the label is NULL.
123 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge) = 0; 118 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge) = 0;
124 // Check whether a register is < a given constant and go to a label if it is. 119 // Check whether a register is < a given constant and go to a label if it is.
125 // Backtracks instead if the label is NULL. 120 // Backtracks instead if the label is NULL.
126 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt) = 0; 121 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt) = 0;
127 // Check whether a register is == to the current position and go to a 122 // Check whether a register is == to the current position and go to a
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 int output_size, 239 int output_size,
245 Isolate* isolate); 240 Isolate* isolate);
246 }; 241 };
247 242
248 #endif // V8_INTERPRETED_REGEXP 243 #endif // V8_INTERPRETED_REGEXP
249 244
250 } // namespace internal 245 } // namespace internal
251 } // namespace v8 246 } // namespace v8
252 247
253 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_ 248 #endif // V8_REGEXP_REGEXP_MACRO_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/regexp/regexp-macro-assembler-tracer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698