| 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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 ASSERT(!instr->HasPointerMap()); | 790 ASSERT(!instr->HasPointerMap()); |
| 791 instr->set_pointer_map(new(zone()) LPointerMap(position_)); | 791 instr->set_pointer_map(new(zone()) LPointerMap(position_)); |
| 792 return instr; | 792 return instr; |
| 793 } | 793 } |
| 794 | 794 |
| 795 | 795 |
| 796 LUnallocated* LChunkBuilder::TempRegister() { | 796 LUnallocated* LChunkBuilder::TempRegister() { |
| 797 LUnallocated* operand = | 797 LUnallocated* operand = |
| 798 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER); | 798 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER); |
| 799 operand->set_virtual_register(allocator_->GetVirtualRegister()); | 799 operand->set_virtual_register(allocator_->GetVirtualRegister()); |
| 800 if (!allocator_->AllocationOk()) Abort("Not enough virtual registers (temps)."
); | 800 if (!allocator_->AllocationOk()) { |
| 801 Abort("Not enough virtual registers (temps)."); |
| 802 } |
| 801 return operand; | 803 return operand; |
| 802 } | 804 } |
| 803 | 805 |
| 804 | 806 |
| 805 LOperand* LChunkBuilder::FixedTemp(Register reg) { | 807 LOperand* LChunkBuilder::FixedTemp(Register reg) { |
| 806 LUnallocated* operand = ToUnallocated(reg); | 808 LUnallocated* operand = ToUnallocated(reg); |
| 807 ASSERT(operand->HasFixedPolicy()); | 809 ASSERT(operand->HasFixedPolicy()); |
| 808 return operand; | 810 return operand; |
| 809 } | 811 } |
| 810 | 812 |
| (...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2397 LOperand* key = UseOrConstantAtStart(instr->key()); | 2399 LOperand* key = UseOrConstantAtStart(instr->key()); |
| 2398 LOperand* object = UseOrConstantAtStart(instr->object()); | 2400 LOperand* object = UseOrConstantAtStart(instr->object()); |
| 2399 LIn* result = new(zone()) LIn(context, key, object); | 2401 LIn* result = new(zone()) LIn(context, key, object); |
| 2400 return MarkAsCall(DefineFixed(result, eax), instr); | 2402 return MarkAsCall(DefineFixed(result, eax), instr); |
| 2401 } | 2403 } |
| 2402 | 2404 |
| 2403 | 2405 |
| 2404 } } // namespace v8::internal | 2406 } } // namespace v8::internal |
| 2405 | 2407 |
| 2406 #endif // V8_TARGET_ARCH_IA32 | 2408 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |