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

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

Issue 1380863004: Revert of Reland: Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/mips/lithium-mips.h" 5 #include "src/mips/lithium-mips.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 if (i < blocks->length() - 1) next = blocks->at(i + 1); 444 if (i < blocks->length() - 1) next = blocks->at(i + 1);
445 DoBasicBlock(blocks->at(i), next); 445 DoBasicBlock(blocks->at(i), next);
446 if (is_aborted()) return NULL; 446 if (is_aborted()) return NULL;
447 } 447 }
448 status_ = DONE; 448 status_ = DONE;
449 return chunk_; 449 return chunk_;
450 } 450 }
451 451
452 452
453 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { 453 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) {
454 return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, reg.code()); 454 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER,
455 Register::ToAllocationIndex(reg));
455 } 456 }
456 457
457 458
458 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { 459 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) {
459 return new (zone()) 460 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER,
460 LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code()); 461 DoubleRegister::ToAllocationIndex(reg));
461 } 462 }
462 463
463 464
464 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) { 465 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) {
465 return Use(value, ToUnallocated(fixed_register)); 466 return Use(value, ToUnallocated(fixed_register));
466 } 467 }
467 468
468 469
469 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, DoubleRegister reg) { 470 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, DoubleRegister reg) {
470 return Use(value, ToUnallocated(reg)); 471 return Use(value, ToUnallocated(reg));
(...skipping 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2641 LOperand* function = UseRegisterAtStart(instr->function()); 2642 LOperand* function = UseRegisterAtStart(instr->function());
2642 LAllocateBlockContext* result = 2643 LAllocateBlockContext* result =
2643 new(zone()) LAllocateBlockContext(context, function); 2644 new(zone()) LAllocateBlockContext(context, function);
2644 return MarkAsCall(DefineFixed(result, cp), instr); 2645 return MarkAsCall(DefineFixed(result, cp), instr);
2645 } 2646 }
2646 2647
2647 } // namespace internal 2648 } // namespace internal
2648 } // namespace v8 2649 } // namespace v8
2649 2650
2650 #endif // V8_TARGET_ARCH_MIPS 2651 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698