OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 stream->Add("B%d", block_id()); | 201 stream->Add("B%d", block_id()); |
202 } | 202 } |
203 | 203 |
204 | 204 |
205 void LBranch::PrintDataTo(StringStream* stream) { | 205 void LBranch::PrintDataTo(StringStream* stream) { |
206 stream->Add("B%d | B%d on ", true_block_id(), false_block_id()); | 206 stream->Add("B%d | B%d on ", true_block_id(), false_block_id()); |
207 value()->PrintTo(stream); | 207 value()->PrintTo(stream); |
208 } | 208 } |
209 | 209 |
210 | 210 |
| 211 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { |
| 212 return new(zone()) LDebugBreak(); |
| 213 } |
| 214 |
211 void LCmpIDAndBranch::PrintDataTo(StringStream* stream) { | 215 void LCmpIDAndBranch::PrintDataTo(StringStream* stream) { |
212 stream->Add("if "); | 216 stream->Add("if "); |
213 left()->PrintTo(stream); | 217 left()->PrintTo(stream); |
214 stream->Add(" %s ", Token::String(op())); | 218 stream->Add(" %s ", Token::String(op())); |
215 right()->PrintTo(stream); | 219 right()->PrintTo(stream); |
216 stream->Add(" then B%d else B%d", true_block_id(), false_block_id()); | 220 stream->Add(" then B%d else B%d", true_block_id(), false_block_id()); |
217 } | 221 } |
218 | 222 |
219 | 223 |
220 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) { | 224 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) { |
(...skipping 2258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2479 | 2483 |
2480 | 2484 |
2481 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2485 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2482 LOperand* object = UseRegister(instr->object()); | 2486 LOperand* object = UseRegister(instr->object()); |
2483 LOperand* index = UseRegister(instr->index()); | 2487 LOperand* index = UseRegister(instr->index()); |
2484 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2488 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2485 } | 2489 } |
2486 | 2490 |
2487 | 2491 |
2488 } } // namespace v8::internal | 2492 } } // namespace v8::internal |
OLD | NEW |