| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 return assembler_->Implementation(); | 411 return assembler_->Implementation(); |
| 412 } | 412 } |
| 413 | 413 |
| 414 | 414 |
| 415 Handle<Object> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) { | 415 Handle<Object> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) { |
| 416 PrintF(" GetCode(%s);\n", *(source->ToCString())); | 416 PrintF(" GetCode(%s);\n", *(source->ToCString())); |
| 417 return assembler_->GetCode(source); | 417 return assembler_->GetCode(source); |
| 418 } | 418 } |
| 419 | 419 |
| 420 }} // namespace v8::internal | 420 }} // namespace v8::internal |
| OLD | NEW |