OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { | 442 void LStoreKeyedGeneric::PrintDataTo(StringStream* stream) { |
443 object()->PrintTo(stream); | 443 object()->PrintTo(stream); |
444 stream->Add("["); | 444 stream->Add("["); |
445 key()->PrintTo(stream); | 445 key()->PrintTo(stream); |
446 stream->Add("] <- "); | 446 stream->Add("] <- "); |
447 value()->PrintTo(stream); | 447 value()->PrintTo(stream); |
448 } | 448 } |
449 | 449 |
450 | 450 |
451 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) { | 451 void LChunk::AddInstruction(LInstruction* instr, HBasicBlock* block) { |
452 LGap* gap = new LGap(block); | 452 LInstructionGap* gap = new LInstructionGap(block); |
453 int index = -1; | 453 int index = -1; |
454 if (instr->IsControl()) { | 454 if (instr->IsControl()) { |
455 instructions_.Add(gap); | 455 instructions_.Add(gap); |
456 index = instructions_.length(); | 456 index = instructions_.length(); |
457 instructions_.Add(instr); | 457 instructions_.Add(instr); |
458 } else { | 458 } else { |
459 index = instructions_.length(); | 459 index = instructions_.length(); |
460 instructions_.Add(instr); | 460 instructions_.Add(instr); |
461 instructions_.Add(gap); | 461 instructions_.Add(gap); |
462 } | 462 } |
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2201 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2201 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2202 HEnvironment* outer = current_block_->last_environment()->outer(); | 2202 HEnvironment* outer = current_block_->last_environment()->outer(); |
2203 current_block_->UpdateEnvironment(outer); | 2203 current_block_->UpdateEnvironment(outer); |
2204 return NULL; | 2204 return NULL; |
2205 } | 2205 } |
2206 | 2206 |
2207 | 2207 |
2208 } } // namespace v8::internal | 2208 } } // namespace v8::internal |
2209 | 2209 |
2210 #endif // V8_TARGET_ARCH_IA32 | 2210 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |