Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 12684014: Merged r13946 into 3.16 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.16
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/lithium-allocator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) { 692 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) {
693 ASSERT(!instr->HasPointerMap()); 693 ASSERT(!instr->HasPointerMap());
694 instr->set_pointer_map(new(zone()) LPointerMap(position_, zone())); 694 instr->set_pointer_map(new(zone()) LPointerMap(position_, zone()));
695 return instr; 695 return instr;
696 } 696 }
697 697
698 698
699 LUnallocated* LChunkBuilder::TempRegister() { 699 LUnallocated* LChunkBuilder::TempRegister() {
700 LUnallocated* operand = 700 LUnallocated* operand =
701 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER); 701 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER);
702 operand->set_virtual_register(allocator_->GetVirtualRegister()); 702 int vreg = allocator_->GetVirtualRegister();
703 if (!allocator_->AllocationOk()) { 703 if (!allocator_->AllocationOk()) {
704 Abort("Not enough virtual registers (temps)."); 704 Abort("Out of virtual registers while trying to allocate temp register.");
705 return NULL;
705 } 706 }
707 operand->set_virtual_register(vreg);
706 return operand; 708 return operand;
707 } 709 }
708 710
709 711
710 LOperand* LChunkBuilder::FixedTemp(Register reg) { 712 LOperand* LChunkBuilder::FixedTemp(Register reg) {
711 LUnallocated* operand = ToUnallocated(reg); 713 LUnallocated* operand = ToUnallocated(reg);
712 ASSERT(operand->HasFixedPolicy()); 714 ASSERT(operand->HasFixedPolicy());
713 return operand; 715 return operand;
714 } 716 }
715 717
(...skipping 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after
2540 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2542 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2541 LOperand* object = UseRegister(instr->object()); 2543 LOperand* object = UseRegister(instr->object());
2542 LOperand* index = UseTempRegister(instr->index()); 2544 LOperand* index = UseTempRegister(instr->index());
2543 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2545 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2544 } 2546 }
2545 2547
2546 2548
2547 } } // namespace v8::internal 2549 } } // namespace v8::internal
2548 2550
2549 #endif // V8_TARGET_ARCH_IA32 2551 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/lithium-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698