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

Side by Side Diff: src/regexp-macro-assembler-re2k.cc

Issue 11350: Add back references. Since "back references" is two words... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: 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 | Annotate | Revision Log
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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 void RegExpMacroAssemblerRe2k::CheckCharacter(uc16 c, Label* on_equal) { 167 void RegExpMacroAssemblerRe2k::CheckCharacter(uc16 c, Label* on_equal) {
168 assembler_->CheckCharacter(c, on_equal); 168 assembler_->CheckCharacter(c, on_equal);
169 } 169 }
170 170
171 171
172 void RegExpMacroAssemblerRe2k::CheckNotCharacter(uc16 c, Label* on_not_equal) { 172 void RegExpMacroAssemblerRe2k::CheckNotCharacter(uc16 c, Label* on_not_equal) {
173 assembler_->CheckNotCharacter(c, on_not_equal); 173 assembler_->CheckNotCharacter(c, on_not_equal);
174 } 174 }
175 175
176 176
177 void RegExpMacroAssemblerRe2k::CheckNotBackReference(int start_reg, Label* on_no t_equal) {
178 assembler_->CheckNotBackReference(start_reg, on_not_equal);
179 }
180
181
177 void RegExpMacroAssemblerRe2k::CheckBitmap(uc16 start, 182 void RegExpMacroAssemblerRe2k::CheckBitmap(uc16 start,
178 Label* bitmap, 183 Label* bitmap,
179 Label* on_zero) { 184 Label* on_zero) {
180 assembler_->LookupMap1(start, bitmap, on_zero); 185 assembler_->LookupMap1(start, bitmap, on_zero);
181 } 186 }
182 187
183 188
184 void RegExpMacroAssemblerRe2k::DispatchHalfNibbleMap( 189 void RegExpMacroAssemblerRe2k::DispatchHalfNibbleMap(
185 uc16 start, 190 uc16 start,
186 Label* half_nibble_map, 191 Label* half_nibble_map,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 } 236 }
232 237
233 238
234 Handle<Object> RegExpMacroAssemblerRe2k::GetCode() { 239 Handle<Object> RegExpMacroAssemblerRe2k::GetCode() {
235 Handle<ByteArray> array = Factory::NewByteArray(assembler_->length()); 240 Handle<ByteArray> array = Factory::NewByteArray(assembler_->length());
236 assembler_->Copy(array->GetDataStartAddress()); 241 assembler_->Copy(array->GetDataStartAddress());
237 return array; 242 return array;
238 } 243 }
239 244
240 } } // namespace v8::internal 245 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698