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

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

Issue 16280005: RegExp macro assembler clean up. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « src/regexp-macro-assembler-tracer.h ('k') | src/x64/regexp-macro-assembler-x64.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 // 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 void RegExpMacroAssemblerTracer::CheckNotBackReferenceIgnoreCase( 377 void RegExpMacroAssemblerTracer::CheckNotBackReferenceIgnoreCase(
378 int start_reg, 378 int start_reg,
379 Label* on_no_match) { 379 Label* on_no_match) {
380 PrintF(" CheckNotBackReferenceIgnoreCase(register=%d, label[%08x]);\n", 380 PrintF(" CheckNotBackReferenceIgnoreCase(register=%d, label[%08x]);\n",
381 start_reg, LabelToInt(on_no_match)); 381 start_reg, LabelToInt(on_no_match));
382 assembler_->CheckNotBackReferenceIgnoreCase(start_reg, on_no_match); 382 assembler_->CheckNotBackReferenceIgnoreCase(start_reg, on_no_match);
383 } 383 }
384 384
385 385
386 void RegExpMacroAssemblerTracer::CheckCharacters(Vector<const uc16> str,
387 int cp_offset,
388 Label* on_failure,
389 bool check_end_of_string) {
390 PrintF(" %s(str=\"",
391 check_end_of_string ? "CheckCharacters" : "CheckCharactersUnchecked");
392 for (int i = 0; i < str.length(); i++) {
393 PrintF("0x%04x", str[i]);
394 }
395 PrintF("\", cp_offset=%d, label[%08x])\n",
396 cp_offset, LabelToInt(on_failure));
397 assembler_->CheckCharacters(str, cp_offset, on_failure, check_end_of_string);
398 }
399
400
401 bool RegExpMacroAssemblerTracer::CheckSpecialCharacterClass( 386 bool RegExpMacroAssemblerTracer::CheckSpecialCharacterClass(
402 uc16 type, 387 uc16 type,
403 Label* on_no_match) { 388 Label* on_no_match) {
404 bool supported = assembler_->CheckSpecialCharacterClass(type, 389 bool supported = assembler_->CheckSpecialCharacterClass(type,
405 on_no_match); 390 on_no_match);
406 PrintF(" CheckSpecialCharacterClass(type='%c', label[%08x]): %s;\n", 391 PrintF(" CheckSpecialCharacterClass(type='%c', label[%08x]): %s;\n",
407 type, 392 type,
408 LabelToInt(on_no_match), 393 LabelToInt(on_no_match),
409 supported ? "true" : "false"); 394 supported ? "true" : "false");
410 return supported; 395 return supported;
(...skipping 29 matching lines...) Expand all
440 return assembler_->Implementation(); 425 return assembler_->Implementation();
441 } 426 }
442 427
443 428
444 Handle<HeapObject> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) { 429 Handle<HeapObject> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) {
445 PrintF(" GetCode(%s);\n", *(source->ToCString())); 430 PrintF(" GetCode(%s);\n", *(source->ToCString()));
446 return assembler_->GetCode(source); 431 return assembler_->GetCode(source);
447 } 432 }
448 433
449 }} // namespace v8::internal 434 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler-tracer.h ('k') | src/x64/regexp-macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698