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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 assembler_->PushRegister(register_index, check_stack_limit); | 129 assembler_->PushRegister(register_index, check_stack_limit); |
130 } | 130 } |
131 | 131 |
132 | 132 |
133 void RegExpMacroAssemblerTracer::AdvanceRegister(int reg, int by) { | 133 void RegExpMacroAssemblerTracer::AdvanceRegister(int reg, int by) { |
134 PrintF(" AdvanceRegister(register=%d, by=%d);\n", reg, by); | 134 PrintF(" AdvanceRegister(register=%d, by=%d);\n", reg, by); |
135 assembler_->AdvanceRegister(reg, by); | 135 assembler_->AdvanceRegister(reg, by); |
136 } | 136 } |
137 | 137 |
138 | 138 |
| 139 void RegExpMacroAssemblerTracer::SetCurrentPositionFromEnd(int by) { |
| 140 PrintF(" SetCurrentPositionFromEnd(by=%d);\n", by); |
| 141 assembler_->SetCurrentPositionFromEnd(by); |
| 142 } |
| 143 |
| 144 |
139 void RegExpMacroAssemblerTracer::SetRegister(int register_index, int to) { | 145 void RegExpMacroAssemblerTracer::SetRegister(int register_index, int to) { |
140 PrintF(" SetRegister(register=%d, to=%d);\n", register_index, to); | 146 PrintF(" SetRegister(register=%d, to=%d);\n", register_index, to); |
141 assembler_->SetRegister(register_index, to); | 147 assembler_->SetRegister(register_index, to); |
142 } | 148 } |
143 | 149 |
144 | 150 |
145 void RegExpMacroAssemblerTracer::WriteCurrentPositionToRegister(int reg, | 151 void RegExpMacroAssemblerTracer::WriteCurrentPositionToRegister(int reg, |
146 int cp_offset) { | 152 int cp_offset) { |
147 PrintF(" WriteCurrentPositionToRegister(register=%d,cp_offset=%d);\n", | 153 PrintF(" WriteCurrentPositionToRegister(register=%d,cp_offset=%d);\n", |
148 reg, | 154 reg, |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 return assembler_->Implementation(); | 364 return assembler_->Implementation(); |
359 } | 365 } |
360 | 366 |
361 | 367 |
362 Handle<Object> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) { | 368 Handle<Object> RegExpMacroAssemblerTracer::GetCode(Handle<String> source) { |
363 PrintF(" GetCode(%s);\n", *(source->ToCString())); | 369 PrintF(" GetCode(%s);\n", *(source->ToCString())); |
364 return assembler_->GetCode(source); | 370 return assembler_->GetCode(source); |
365 } | 371 } |
366 | 372 |
367 }} // namespace v8::internal | 373 }} // namespace v8::internal |
OLD | NEW |