| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 void RegExpMacroAssemblerTracer::WriteCurrentPositionToRegister(int reg, | 144 void RegExpMacroAssemblerTracer::WriteCurrentPositionToRegister(int reg, |
| 145 int cp_offset) { | 145 int cp_offset) { |
| 146 PrintF(" WriteCurrentPositionToRegister(register=%d,cp_offset=%d);\n", | 146 PrintF(" WriteCurrentPositionToRegister(register=%d,cp_offset=%d);\n", |
| 147 reg, | 147 reg, |
| 148 cp_offset); | 148 cp_offset); |
| 149 assembler_->WriteCurrentPositionToRegister(reg, cp_offset); | 149 assembler_->WriteCurrentPositionToRegister(reg, cp_offset); |
| 150 } | 150 } |
| 151 | 151 |
| 152 | 152 |
| 153 void RegExpMacroAssemblerTracer::ClearRegister(int reg) { | 153 void RegExpMacroAssemblerTracer::ClearRegisters(int reg_from, int reg_to) { |
| 154 PrintF(" ClearRegister(register=%d);\n", reg); | 154 PrintF(" ClearRegister(from=%d, to=%d);\n", reg_from, reg_to); |
| 155 assembler_->ClearRegister(reg); | 155 assembler_->ClearRegisters(reg_from, reg_to); |
| 156 } | 156 } |
| 157 | 157 |
| 158 | 158 |
| 159 void RegExpMacroAssemblerTracer::ReadCurrentPositionFromRegister(int reg) { | 159 void RegExpMacroAssemblerTracer::ReadCurrentPositionFromRegister(int reg) { |
| 160 PrintF(" ReadCurrentPositionFromRegister(register=%d);\n", reg); | 160 PrintF(" ReadCurrentPositionFromRegister(register=%d);\n", reg); |
| 161 assembler_->ReadCurrentPositionFromRegister(reg); | 161 assembler_->ReadCurrentPositionFromRegister(reg); |
| 162 } | 162 } |
| 163 | 163 |
| 164 | 164 |
| 165 void RegExpMacroAssemblerTracer::WriteStackPointerToRegister(int reg) { | 165 void RegExpMacroAssemblerTracer::WriteStackPointerToRegister(int reg) { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 assembler_->CheckCharacterGT(limit, on_greater); | 203 assembler_->CheckCharacterGT(limit, on_greater); |
| 204 } | 204 } |
| 205 | 205 |
| 206 | 206 |
| 207 void RegExpMacroAssemblerTracer::CheckCharacter(uint32_t c, Label* on_equal) { | 207 void RegExpMacroAssemblerTracer::CheckCharacter(uint32_t c, Label* on_equal) { |
| 208 PrintF(" CheckCharacter(c='u%04x', label[%08x]);\n", c, on_equal); | 208 PrintF(" CheckCharacter(c='u%04x', label[%08x]);\n", c, on_equal); |
| 209 assembler_->CheckCharacter(c, on_equal); | 209 assembler_->CheckCharacter(c, on_equal); |
| 210 } | 210 } |
| 211 | 211 |
| 212 | 212 |
| 213 void RegExpMacroAssemblerTracer::CheckAtStart(Label* on_at_start) { |
| 214 PrintF(" CheckAtStart(label[%08x]);\n", on_at_start); |
| 215 assembler_->CheckAtStart(on_at_start); |
| 216 } |
| 217 |
| 218 |
| 213 void RegExpMacroAssemblerTracer::CheckNotAtStart(Label* on_not_at_start) { | 219 void RegExpMacroAssemblerTracer::CheckNotAtStart(Label* on_not_at_start) { |
| 214 PrintF(" CheckNotAtStart(label[%08x]);\n", on_not_at_start); | 220 PrintF(" CheckNotAtStart(label[%08x]);\n", on_not_at_start); |
| 215 assembler_->CheckNotAtStart(on_not_at_start); | 221 assembler_->CheckNotAtStart(on_not_at_start); |
| 216 } | 222 } |
| 217 | 223 |
| 218 | 224 |
| 219 void RegExpMacroAssemblerTracer::CheckNotCharacter(uint32_t c, | 225 void RegExpMacroAssemblerTracer::CheckNotCharacter(uint32_t c, |
| 220 Label* on_not_equal) { | 226 Label* on_not_equal) { |
| 221 PrintF(" CheckNotCharacter(c='u%04x', label[%08x]);\n", c, on_not_equal); | 227 PrintF(" CheckNotCharacter(c='u%04x', label[%08x]);\n", c, on_not_equal); |
| 222 assembler_->CheckNotCharacter(c, on_not_equal); | 228 assembler_->CheckNotCharacter(c, on_not_equal); |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 return assembler_->Implementation(); | 411 return assembler_->Implementation(); |
| 406 } | 412 } |
| 407 | 413 |
| 408 | 414 |
| 409 Handle<Object> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) { | 415 Handle<Object> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) { |
| 410 PrintF(" GetCode(%s);\n", *(source->ToCString())); | 416 PrintF(" GetCode(%s);\n", *(source->ToCString())); |
| 411 return assembler_->GetCode(source); | 417 return assembler_->GetCode(source); |
| 412 } | 418 } |
| 413 | 419 |
| 414 }} // namespace v8::internal | 420 }} // namespace v8::internal |
| OLD | NEW |