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