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

Side by Side Diff: src/arm/lithium-arm.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 | « no previous file | src/ia32/lithium-ia32.cc » ('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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) { 650 LInstruction* LChunkBuilder::AssignPointerMap(LInstruction* instr) {
651 ASSERT(!instr->HasPointerMap()); 651 ASSERT(!instr->HasPointerMap());
652 instr->set_pointer_map(new(zone()) LPointerMap(position_, zone())); 652 instr->set_pointer_map(new(zone()) LPointerMap(position_, zone()));
653 return instr; 653 return instr;
654 } 654 }
655 655
656 656
657 LUnallocated* LChunkBuilder::TempRegister() { 657 LUnallocated* LChunkBuilder::TempRegister() {
658 LUnallocated* operand = 658 LUnallocated* operand =
659 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER); 659 new(zone()) LUnallocated(LUnallocated::MUST_HAVE_REGISTER);
660 operand->set_virtual_register(allocator_->GetVirtualRegister()); 660 int vreg = allocator_->GetVirtualRegister();
661 if (!allocator_->AllocationOk()) Abort("Not enough virtual registers."); 661 if (!allocator_->AllocationOk()) {
662 Abort("Out of virtual registers while trying to allocate temp register.");
663 return NULL;
664 }
665 operand->set_virtual_register(vreg);
662 return operand; 666 return operand;
663 } 667 }
664 668
665 669
666 LOperand* LChunkBuilder::FixedTemp(Register reg) { 670 LOperand* LChunkBuilder::FixedTemp(Register reg) {
667 LUnallocated* operand = ToUnallocated(reg); 671 LUnallocated* operand = ToUnallocated(reg);
668 ASSERT(operand->HasFixedPolicy()); 672 ASSERT(operand->HasFixedPolicy());
669 return operand; 673 return operand;
670 } 674 }
671 675
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
2438 2442
2439 2443
2440 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2444 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2441 LOperand* object = UseRegister(instr->object()); 2445 LOperand* object = UseRegister(instr->object());
2442 LOperand* index = UseRegister(instr->index()); 2446 LOperand* index = UseRegister(instr->index());
2443 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2447 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2444 } 2448 }
2445 2449
2446 2450
2447 } } // namespace v8::internal 2451 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698