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

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

Issue 10750: * Update to RegExp parsing and AST. (Closed)
Patch Set: Addressed review comments Created 12 years, 1 month 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 | « regexp2000/src/regexp-macro-assembler.cc ('k') | regexp2000/src/regexp-macro-assembler-ia32.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 private: 126 private:
127 Operand register_location(int register_index); 127 Operand register_location(int register_index);
128 bool ignore_case(); 128 bool ignore_case();
129 // Generate code to perform case-canonicalization on the register. 129 // Generate code to perform case-canonicalization on the register.
130 void BranchOrBacktrack(Condition condition, Label* to); 130 void BranchOrBacktrack(Condition condition, Label* to);
131 void Canonicalize(Register register); 131 void Canonicalize(Register register);
132 void Exit(bool success); 132 void Exit(bool success);
133 // Read a character from input at the given offset from the current 133 // Read a character from input at the given offset from the current
134 // position. 134 // position.
135 void ReadChar(Register destination, int offset); 135 void ReadChar(Register destination, int offset);
136
137 template <typename T>
138 void LoadConstantBufferAddress(Register reg, ArraySlice<T>* buffer);
139
136 // Read the current character into the destination register. 140 // Read the current character into the destination register.
137 void ReadCurrentChar(Register destination); 141 void ReadCurrentChar(Register destination);
138 142
139 static const int kRegExpConstantsSize = 256; 143 static const int kRegExpConstantsSize = 256;
140 static const int kMaxInlineStringTests = 8; 144 static const int kMaxInlineStringTests = 8;
141 static const uint32_t kEndOfInput = ~0; 145 static const uint32_t kEndOfInput = ~0;
142 146
143 MacroAssembler* masm_; 147 MacroAssembler* masm_;
144 ByteArrayProvider constants_; 148 ByteArrayProvider constants_;
145 int num_registers_; 149 int num_registers_;
146 bool ignore_case_; 150 bool ignore_case_;
147 }; 151 };
148
149 }} 152 }}
150 153
151 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */ 154 #endif /* REGEXP_MACRO_ASSEMBLER_IA32_H_ */
OLDNEW
« no previous file with comments | « regexp2000/src/regexp-macro-assembler.cc ('k') | regexp2000/src/regexp-macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698