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

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

Issue 12900: Irregexp:... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 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 side-by-side diff with in-line comments
Download patch
Index: src/regexp-macro-assembler-tracer.cc
===================================================================
--- src/regexp-macro-assembler-tracer.cc (revision 927)
+++ src/regexp-macro-assembler-tracer.cc (working copy)
@@ -64,6 +64,12 @@
}
+void RegExpMacroAssemblerTracer::CheckGreedyLoop(Label* label) {
+ PrintF(" CheckGreedyLoop(label[%08x]);\n\n", label);
+ assembler_->CheckGreedyLoop(label);
+}
+
+
void RegExpMacroAssemblerTracer::PopCurrentPosition() {
PrintF(" PopCurrentPosition();\n");
assembler_->PopCurrentPosition();
@@ -130,9 +136,12 @@
}
-void RegExpMacroAssemblerTracer::WriteCurrentPositionToRegister(int reg) {
- PrintF(" WriteCurrentPositionToRegister(register=%d);\n", reg);
- assembler_->WriteCurrentPositionToRegister(reg);
+void RegExpMacroAssemblerTracer::WriteCurrentPositionToRegister(int reg,
+ int cp_offset) {
+ PrintF(" WriteCurrentPositionToRegister(register=%d,cp_offset=%d);\n",
+ reg,
+ cp_offset);
+ assembler_->WriteCurrentPositionToRegister(reg, cp_offset);
}
@@ -156,12 +165,20 @@
void RegExpMacroAssemblerTracer::LoadCurrentCharacter(int cp_offset,
Label* on_end_of_input) {
- PrintF(" LoadCurrentCharacter(cp_offset=%d, label[%08x]);\n", cp_offset,
+ PrintF(" LoadCurrentCharacter(cp_offset=%d, label[%08x]);\n",
+ cp_offset,
on_end_of_input);
assembler_->LoadCurrentCharacter(cp_offset, on_end_of_input);
}
+void RegExpMacroAssemblerTracer::LoadCurrentCharacterUnchecked(int cp_offset) {
+ PrintF(" LoadCurrentCharacterUnchecked(cp_offset=%d);\n",
+ cp_offset);
+ assembler_->LoadCurrentCharacterUnchecked(cp_offset);
+}
+
+
void RegExpMacroAssemblerTracer::CheckCharacterLT(uc16 limit, Label* on_less) {
PrintF(" CheckCharacterLT(c='u%04x', label[%08x]);\n", limit, on_less);
assembler_->CheckCharacterLT(limit, on_less);
@@ -242,24 +259,18 @@
void RegExpMacroAssemblerTracer::CheckCharacters(Vector<const uc16> str,
int cp_offset,
- Label* on_failure) {
- PrintF(" CheckCharacters(str=\"");
+ Label* on_failure,
+ bool check_end_of_string) {
+ PrintF(" %s(str=\"",
+ check_end_of_string ? "CheckCharacters" : "CheckCharactersUnchecked");
for (int i = 0; i < str.length(); i++) {
PrintF("u%04x", str[i]);
}
PrintF("\", cp_offset=%d, label[%08x])\n", cp_offset, on_failure);
- assembler_->CheckCharacters(str, cp_offset, on_failure);
+ assembler_->CheckCharacters(str, cp_offset, on_failure, check_end_of_string);
}
-void RegExpMacroAssemblerTracer::CheckCurrentPosition(int register_index,
- Label* on_equal) {
- PrintF(" CheckCurrentPosition(register=%d, label[%08x]);\n", register_index,
- on_equal);
- assembler_->CheckCurrentPosition(register_index, on_equal);
-}
-
-
void RegExpMacroAssemblerTracer::CheckBitmap(uc16 start, Label* bitmap,
Label* on_zero) {
PrintF(" CheckBitmap(start=u$04x, <bitmap>, label[%08x]);\n", start, on_zero);
@@ -334,9 +345,9 @@
}
-Handle<Object> RegExpMacroAssemblerTracer::GetCode() {
- PrintF(" GetCode();\n");
- return assembler_->GetCode();
+Handle<Object> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) {
+ PrintF(" GetCode(%s);\n", *(source->ToCString()));
+ return assembler_->GetCode(source);
}
}} // namespace v8::internal

Powered by Google App Engine
This is Rietveld 408576698