| 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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 template<int I, int T> | 672 template<int I, int T> |
| 673 LInstruction* LChunkBuilder::Define(LTemplateInstruction<1, I, T>* instr, | 673 LInstruction* LChunkBuilder::Define(LTemplateInstruction<1, I, T>* instr, |
| 674 LUnallocated* result) { | 674 LUnallocated* result) { |
| 675 allocator_->RecordDefinition(current_instruction_, result); | 675 allocator_->RecordDefinition(current_instruction_, result); |
| 676 instr->set_result(result); | 676 instr->set_result(result); |
| 677 return instr; | 677 return instr; |
| 678 } | 678 } |
| 679 | 679 |
| 680 | 680 |
| 681 template<int I, int T> | 681 template<int I, int T> |
| 682 LInstruction* LChunkBuilder::Define(LTemplateInstruction<1, I, T>* instr) { | |
| 683 return Define(instr, new LUnallocated(LUnallocated::NONE)); | |
| 684 } | |
| 685 | |
| 686 | |
| 687 template<int I, int T> | |
| 688 LInstruction* LChunkBuilder::DefineAsRegister( | 682 LInstruction* LChunkBuilder::DefineAsRegister( |
| 689 LTemplateInstruction<1, I, T>* instr) { | 683 LTemplateInstruction<1, I, T>* instr) { |
| 690 return Define(instr, new LUnallocated(LUnallocated::MUST_HAVE_REGISTER)); | 684 return Define(instr, new LUnallocated(LUnallocated::MUST_HAVE_REGISTER)); |
| 691 } | 685 } |
| 692 | 686 |
| 693 | 687 |
| 694 template<int I, int T> | 688 template<int I, int T> |
| 695 LInstruction* LChunkBuilder::DefineAsSpilled( | 689 LInstruction* LChunkBuilder::DefineAsSpilled( |
| 696 LTemplateInstruction<1, I, T>* instr, | 690 LTemplateInstruction<1, I, T>* instr, |
| 697 int index) { | 691 int index) { |
| (...skipping 1568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2266 LOperand* key = UseOrConstantAtStart(instr->key()); | 2260 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2267 LOperand* object = UseOrConstantAtStart(instr->object()); | 2261 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2268 LIn* result = new LIn(key, object); | 2262 LIn* result = new LIn(key, object); |
| 2269 return MarkAsCall(DefineFixed(result, rax), instr); | 2263 return MarkAsCall(DefineFixed(result, rax), instr); |
| 2270 } | 2264 } |
| 2271 | 2265 |
| 2272 | 2266 |
| 2273 } } // namespace v8::internal | 2267 } } // namespace v8::internal |
| 2274 | 2268 |
| 2275 #endif // V8_TARGET_ARCH_X64 | 2269 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |