| 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 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2268 | 2262 |
| 2269 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2263 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2270 LOperand* key = UseRegisterAtStart(instr->key()); | 2264 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2271 LOperand* object = UseRegisterAtStart(instr->object()); | 2265 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2272 LIn* result = new LIn(key, object); | 2266 LIn* result = new LIn(key, object); |
| 2273 return MarkAsCall(DefineFixed(result, v0), instr); | 2267 return MarkAsCall(DefineFixed(result, v0), instr); |
| 2274 } | 2268 } |
| 2275 | 2269 |
| 2276 | 2270 |
| 2277 } } // namespace v8::internal | 2271 } } // namespace v8::internal |
| OLD | NEW |