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

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

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 | « src/regexp/regexp-macro-assembler-tracer.h ('k') | no next file » | 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 #include "src/regexp/regexp-macro-assembler-tracer.h" 5 #include "src/regexp/regexp-macro-assembler-tracer.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 void RegExpMacroAssemblerTracer::CheckNotBackReferenceIgnoreCase( 362 void RegExpMacroAssemblerTracer::CheckNotBackReferenceIgnoreCase(
363 int start_reg, bool read_backward, Label* on_no_match) { 363 int start_reg, bool read_backward, Label* on_no_match) {
364 PrintF(" CheckNotBackReferenceIgnoreCase(register=%d, %s, label[%08x]);\n", 364 PrintF(" CheckNotBackReferenceIgnoreCase(register=%d, %s, label[%08x]);\n",
365 start_reg, read_backward ? "backward" : "forward", 365 start_reg, read_backward ? "backward" : "forward",
366 LabelToInt(on_no_match)); 366 LabelToInt(on_no_match));
367 assembler_->CheckNotBackReferenceIgnoreCase(start_reg, read_backward, 367 assembler_->CheckNotBackReferenceIgnoreCase(start_reg, read_backward,
368 on_no_match); 368 on_no_match);
369 } 369 }
370 370
371 371
372 void RegExpMacroAssemblerTracer::CheckPosition(int cp_offset,
373 Label* on_outside_input) {
374 PrintF(" CheckPosition(cp_offset=%d, label[%08x]);\n", cp_offset,
375 LabelToInt(on_outside_input));
376 assembler_->CheckPosition(cp_offset, on_outside_input);
377 }
378
379
372 bool RegExpMacroAssemblerTracer::CheckSpecialCharacterClass( 380 bool RegExpMacroAssemblerTracer::CheckSpecialCharacterClass(
373 uc16 type, 381 uc16 type,
374 Label* on_no_match) { 382 Label* on_no_match) {
375 bool supported = assembler_->CheckSpecialCharacterClass(type, 383 bool supported = assembler_->CheckSpecialCharacterClass(type,
376 on_no_match); 384 on_no_match);
377 PrintF(" CheckSpecialCharacterClass(type='%c', label[%08x]): %s;\n", 385 PrintF(" CheckSpecialCharacterClass(type='%c', label[%08x]): %s;\n",
378 type, 386 type,
379 LabelToInt(on_no_match), 387 LabelToInt(on_no_match),
380 supported ? "true" : "false"); 388 supported ? "true" : "false");
381 return supported; 389 return supported;
(...skipping 30 matching lines...) Expand all
412 } 420 }
413 421
414 422
415 Handle<HeapObject> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) { 423 Handle<HeapObject> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) {
416 PrintF(" GetCode(%s);\n", source->ToCString().get()); 424 PrintF(" GetCode(%s);\n", source->ToCString().get());
417 return assembler_->GetCode(source); 425 return assembler_->GetCode(source);
418 } 426 }
419 427
420 } // namespace internal 428 } // namespace internal
421 } // namespace v8 429 } // namespace v8
OLDNEW
« no previous file with comments | « src/regexp/regexp-macro-assembler-tracer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698