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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 void LBranch::PrintDataTo(StringStream* stream) { | 179 void LBranch::PrintDataTo(StringStream* stream) { |
180 stream->Add("B%d | B%d on ", true_block_id(), false_block_id()); | 180 stream->Add("B%d | B%d on ", true_block_id(), false_block_id()); |
181 value()->PrintTo(stream); | 181 value()->PrintTo(stream); |
182 } | 182 } |
183 | 183 |
184 | 184 |
185 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { | 185 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { |
186 return new(zone()) LDebugBreak(); | 186 return new(zone()) LDebugBreak(); |
187 } | 187 } |
188 | 188 |
| 189 |
189 void LCmpIDAndBranch::PrintDataTo(StringStream* stream) { | 190 void LCmpIDAndBranch::PrintDataTo(StringStream* stream) { |
190 stream->Add("if "); | 191 stream->Add("if "); |
191 left()->PrintTo(stream); | 192 left()->PrintTo(stream); |
192 stream->Add(" %s ", Token::String(op())); | 193 stream->Add(" %s ", Token::String(op())); |
193 right()->PrintTo(stream); | 194 right()->PrintTo(stream); |
194 stream->Add(" then B%d else B%d", true_block_id(), false_block_id()); | 195 stream->Add(" then B%d else B%d", true_block_id(), false_block_id()); |
195 } | 196 } |
196 | 197 |
197 | 198 |
198 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) { | 199 void LIsObjectAndBranch::PrintDataTo(StringStream* stream) { |
(...skipping 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2550 | 2551 |
2551 | 2552 |
2552 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2553 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2553 LOperand* object = UseRegister(instr->object()); | 2554 LOperand* object = UseRegister(instr->object()); |
2554 LOperand* index = UseRegister(instr->index()); | 2555 LOperand* index = UseRegister(instr->index()); |
2555 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2556 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2556 } | 2557 } |
2557 | 2558 |
2558 | 2559 |
2559 } } // namespace v8::internal | 2560 } } // namespace v8::internal |
OLD | NEW |