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

Unified Diff: src/regexp-macro-assembler-tracer.cc

Issue 165443: X64: Implement RegExp natively. (Closed)
Patch Set: Addressed review comments. Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: src/regexp-macro-assembler-tracer.cc
diff --git a/src/regexp-macro-assembler-tracer.cc b/src/regexp-macro-assembler-tracer.cc
index 30eb485e3747e5d862a80f275c8a8223121c70f7..0aad3373789aab795a8f57dbf3775274db2080aa 100644
--- a/src/regexp-macro-assembler-tracer.cc
+++ b/src/regexp-macro-assembler-tracer.cc
@@ -53,12 +53,6 @@ void RegExpMacroAssemblerTracer::Bind(Label* label) {
}
-void RegExpMacroAssemblerTracer::EmitOrLink(Label* label) {
- PrintF(" EmitOrLink(label[%08x]);\n", label);
- assembler_->EmitOrLink(label);
-}
-
-
void RegExpMacroAssemblerTracer::AdvanceCurrentPosition(int by) {
PrintF(" AdvanceCurrentPosition(by=%d);\n", by);
assembler_->AdvanceCurrentPosition(by);
@@ -311,13 +305,6 @@ void RegExpMacroAssemblerTracer::CheckCharacters(Vector<const uc16> str,
}
-void RegExpMacroAssemblerTracer::CheckBitmap(uc16 start, Label* bitmap,
- Label* on_zero) {
- PrintF(" CheckBitmap(start=u%04x, <bitmap>, label[%08x]);\n", start, on_zero);
- assembler_->CheckBitmap(start, bitmap, on_zero);
-}
-
-
bool RegExpMacroAssemblerTracer::CheckSpecialCharacterClass(
uc16 type,
int cp_offset,
@@ -338,51 +325,6 @@ bool RegExpMacroAssemblerTracer::CheckSpecialCharacterClass(
}
-void RegExpMacroAssemblerTracer::DispatchHalfNibbleMap(
- uc16 start,
- Label* half_nibble_map,
- const Vector<Label*>& destinations) {
- PrintF(" DispatchHalfNibbleMap(start=u%04x, <half_nibble_map>, [", start);
- for (int i = 0; i < destinations.length(); i++) {
- if (i > 0)
- PrintF(", ");
- PrintF("label[%08x]", destinations[i]);
- }
- PrintF(");\n");
- assembler_->DispatchHalfNibbleMap(start, half_nibble_map, destinations);
-}
-
-
-void RegExpMacroAssemblerTracer::DispatchByteMap(
- uc16 start,
- Label* byte_map,
- const Vector<Label*>& destinations) {
- PrintF(" DispatchByteMap(start=u%04x, <byte_map>, [", start);
- for (int i = 0; i < destinations.length(); i++) {
- if (i > 0)
- PrintF(", ");
- PrintF("label[%08x]", destinations[i]);
- }
- PrintF(");\n");
- assembler_->DispatchByteMap(start, byte_map, destinations);
-}
-
-
-void RegExpMacroAssemblerTracer::DispatchHighByteMap(
- byte start,
- Label* byte_map,
- const Vector<Label*>& destinations) {
- PrintF(" DispatchHighByteMap(start=u%04x, <byte_map>, [", start);
- for (int i = 0; i < destinations.length(); i++) {
- if (i > 0)
- PrintF(", ");
- PrintF("label[%08x]", destinations[i]);
- }
- PrintF(");\n");
- assembler_->DispatchHighByteMap(start, byte_map, destinations);
-}
-
-
void RegExpMacroAssemblerTracer::IfRegisterLT(int register_index,
int comparand, Label* if_lt) {
PrintF(" IfRegisterLT(register=%d, number=%d, label[%08x]);\n",

Powered by Google App Engine
This is Rietveld 408576698