OLD | NEW |
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 } | 187 } |
188 | 188 |
189 void RegExpMacroAssemblerTracer::CheckNotBackReferenceIgnoreCase( | 189 void RegExpMacroAssemblerTracer::CheckNotBackReferenceIgnoreCase( |
190 int start_reg, | 190 int start_reg, |
191 Label* on_no_match) { | 191 Label* on_no_match) { |
192 PrintF(" CheckNotBackReferenceIgnoreCase(register=%d, label[%08x]);\n", | 192 PrintF(" CheckNotBackReferenceIgnoreCase(register=%d, label[%08x]);\n", |
193 start_reg, on_no_match); | 193 start_reg, on_no_match); |
194 assembler_->CheckNotBackReferenceIgnoreCase(start_reg, on_no_match); | 194 assembler_->CheckNotBackReferenceIgnoreCase(start_reg, on_no_match); |
195 } | 195 } |
196 | 196 |
| 197 |
| 198 void RegExpMacroAssemblerTracer::CheckNotRegistersEqual(int reg1, |
| 199 int reg2, |
| 200 Label* on_not_equal) { |
| 201 PrintF(" CheckNotRegistersEqual(reg1=%d, reg2=%d, label[%08x]);\n", |
| 202 reg1, |
| 203 reg2, |
| 204 on_not_equal); |
| 205 assembler_->CheckNotRegistersEqual(reg1, reg2, on_not_equal); |
| 206 } |
| 207 |
| 208 |
197 void RegExpMacroAssemblerTracer::CheckCharacters(Vector<const uc16> str, | 209 void RegExpMacroAssemblerTracer::CheckCharacters(Vector<const uc16> str, |
198 int cp_offset, | 210 int cp_offset, |
199 Label* on_failure) { | 211 Label* on_failure) { |
200 PrintF(" CheckCharacters(str=\""); | 212 PrintF(" CheckCharacters(str=\""); |
201 for (int i = 0; i < str.length(); i++) { | 213 for (int i = 0; i < str.length(); i++) { |
202 PrintF("u%04x", str[i]); | 214 PrintF("u%04x", str[i]); |
203 } | 215 } |
204 PrintF("\", cp_offset=%d, label[%08x])\n", cp_offset, on_failure); | 216 PrintF("\", cp_offset=%d, label[%08x])\n", cp_offset, on_failure); |
205 assembler_->CheckCharacters(str, cp_offset, on_failure); | 217 assembler_->CheckCharacters(str, cp_offset, on_failure); |
206 } | 218 } |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 RegExpMacroAssemblerTracer::Implementation() { | 290 RegExpMacroAssemblerTracer::Implementation() { |
279 return assembler_->Implementation(); | 291 return assembler_->Implementation(); |
280 } | 292 } |
281 | 293 |
282 Handle<Object> RegExpMacroAssemblerTracer::GetCode() { | 294 Handle<Object> RegExpMacroAssemblerTracer::GetCode() { |
283 PrintF(" GetCode();\n"); | 295 PrintF(" GetCode();\n"); |
284 return assembler_->GetCode(); | 296 return assembler_->GetCode(); |
285 } | 297 } |
286 | 298 |
287 }} // namespace v8::internal | 299 }} // namespace v8::internal |
OLD | NEW |