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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 } | 669 } |
670 | 670 |
671 | 671 |
672 LInstruction* LChunkBuilder::Define(LInstruction* instr, LUnallocated* result) { | 672 LInstruction* LChunkBuilder::Define(LInstruction* instr, LUnallocated* result) { |
673 allocator_->RecordDefinition(current_instruction_, result); | 673 allocator_->RecordDefinition(current_instruction_, result); |
674 instr->set_result(result); | 674 instr->set_result(result); |
675 return instr; | 675 return instr; |
676 } | 676 } |
677 | 677 |
678 | 678 |
679 LOperand* LChunkBuilder::Temp() { | |
680 LUnallocated* operand = new LUnallocated(LUnallocated::NONE); | |
681 allocator_->RecordTemporary(operand); | |
682 return operand; | |
683 } | |
684 | |
685 | |
686 LUnallocated* LChunkBuilder::TempRegister() { | 679 LUnallocated* LChunkBuilder::TempRegister() { |
687 LUnallocated* operand = new LUnallocated(LUnallocated::MUST_HAVE_REGISTER); | 680 LUnallocated* operand = new LUnallocated(LUnallocated::MUST_HAVE_REGISTER); |
688 allocator_->RecordTemporary(operand); | 681 allocator_->RecordTemporary(operand); |
689 return operand; | 682 return operand; |
690 } | 683 } |
691 | 684 |
692 | 685 |
693 LOperand* LChunkBuilder::FixedTemp(Register reg) { | 686 LOperand* LChunkBuilder::FixedTemp(Register reg) { |
694 LUnallocated* operand = ToUnallocated(reg); | 687 LUnallocated* operand = ToUnallocated(reg); |
695 allocator_->RecordTemporary(operand); | 688 allocator_->RecordTemporary(operand); |
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1909 void LPointerMap::PrintTo(StringStream* stream) const { | 1902 void LPointerMap::PrintTo(StringStream* stream) const { |
1910 stream->Add("{"); | 1903 stream->Add("{"); |
1911 for (int i = 0; i < pointer_operands_.length(); ++i) { | 1904 for (int i = 0; i < pointer_operands_.length(); ++i) { |
1912 if (i != 0) stream->Add(";"); | 1905 if (i != 0) stream->Add(";"); |
1913 pointer_operands_[i]->PrintTo(stream); | 1906 pointer_operands_[i]->PrintTo(stream); |
1914 } | 1907 } |
1915 stream->Add("} @%d", position()); | 1908 stream->Add("} @%d", position()); |
1916 } | 1909 } |
1917 | 1910 |
1918 } } // namespace v8::internal | 1911 } } // namespace v8::internal |
OLD | NEW |