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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 template<int I, int T> | 679 template<int I, int T> |
680 LInstruction* LChunkBuilder::Define(LTemplateInstruction<1, I, T>* instr, | 680 LInstruction* LChunkBuilder::Define(LTemplateInstruction<1, I, T>* instr, |
681 LUnallocated* result) { | 681 LUnallocated* result) { |
682 allocator_->RecordDefinition(current_instruction_, result); | 682 allocator_->RecordDefinition(current_instruction_, result); |
683 instr->set_result(result); | 683 instr->set_result(result); |
684 return instr; | 684 return instr; |
685 } | 685 } |
686 | 686 |
687 | 687 |
688 template<int I, int T> | 688 template<int I, int T> |
689 LInstruction* LChunkBuilder::Define(LTemplateInstruction<1, I, T>* instr) { | |
690 return Define(instr, new LUnallocated(LUnallocated::NONE)); | |
691 } | |
692 | |
693 | |
694 template<int I, int T> | |
695 LInstruction* LChunkBuilder::DefineAsRegister( | 689 LInstruction* LChunkBuilder::DefineAsRegister( |
696 LTemplateInstruction<1, I, T>* instr) { | 690 LTemplateInstruction<1, I, T>* instr) { |
697 return Define(instr, new LUnallocated(LUnallocated::MUST_HAVE_REGISTER)); | 691 return Define(instr, new LUnallocated(LUnallocated::MUST_HAVE_REGISTER)); |
698 } | 692 } |
699 | 693 |
700 | 694 |
701 template<int I, int T> | 695 template<int I, int T> |
702 LInstruction* LChunkBuilder::DefineAsSpilled( | 696 LInstruction* LChunkBuilder::DefineAsSpilled( |
703 LTemplateInstruction<1, I, T>* instr, int index) { | 697 LTemplateInstruction<1, I, T>* instr, int index) { |
704 return Define(instr, new LUnallocated(LUnallocated::FIXED_SLOT, index)); | 698 return Define(instr, new LUnallocated(LUnallocated::FIXED_SLOT, index)); |
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2263 | 2257 |
2264 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2258 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2265 LOperand* key = UseRegisterAtStart(instr->key()); | 2259 LOperand* key = UseRegisterAtStart(instr->key()); |
2266 LOperand* object = UseRegisterAtStart(instr->object()); | 2260 LOperand* object = UseRegisterAtStart(instr->object()); |
2267 LIn* result = new LIn(key, object); | 2261 LIn* result = new LIn(key, object); |
2268 return MarkAsCall(DefineFixed(result, r0), instr); | 2262 return MarkAsCall(DefineFixed(result, r0), instr); |
2269 } | 2263 } |
2270 | 2264 |
2271 | 2265 |
2272 } } // namespace v8::internal | 2266 } } // namespace v8::internal |
OLD | NEW |