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

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

Issue 1381383002: PPC: 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/ppc/lithium-codegen-ppc.cc ('k') | src/ppc/macro-assembler-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-ppc.h" 5 #include "src/ppc/lithium-ppc.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 if (i < blocks->length() - 1) next = blocks->at(i + 1); 450 if (i < blocks->length() - 1) next = blocks->at(i + 1);
451 DoBasicBlock(blocks->at(i), next); 451 DoBasicBlock(blocks->at(i), next);
452 if (is_aborted()) return NULL; 452 if (is_aborted()) return NULL;
453 } 453 }
454 status_ = DONE; 454 status_ = DONE;
455 return chunk_; 455 return chunk_;
456 } 456 }
457 457
458 458
459 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { 459 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) {
460 return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, 460 return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, reg.code());
461 Register::ToAllocationIndex(reg));
462 } 461 }
463 462
464 463
465 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { 464 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) {
466 return new (zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, 465 return new (zone())
467 DoubleRegister::ToAllocationIndex(reg)); 466 LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code());
468 } 467 }
469 468
470 469
471 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) { 470 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) {
472 return Use(value, ToUnallocated(fixed_register)); 471 return Use(value, ToUnallocated(fixed_register));
473 } 472 }
474 473
475 474
476 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, DoubleRegister reg) { 475 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, DoubleRegister reg) {
477 return Use(value, ToUnallocated(reg)); 476 return Use(value, ToUnallocated(reg));
(...skipping 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2643 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2642 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2644 HAllocateBlockContext* instr) { 2643 HAllocateBlockContext* instr) {
2645 LOperand* context = UseFixed(instr->context(), cp); 2644 LOperand* context = UseFixed(instr->context(), cp);
2646 LOperand* function = UseRegisterAtStart(instr->function()); 2645 LOperand* function = UseRegisterAtStart(instr->function());
2647 LAllocateBlockContext* result = 2646 LAllocateBlockContext* result =
2648 new (zone()) LAllocateBlockContext(context, function); 2647 new (zone()) LAllocateBlockContext(context, function);
2649 return MarkAsCall(DefineFixed(result, cp), instr); 2648 return MarkAsCall(DefineFixed(result, cp), instr);
2650 } 2649 }
2651 } // namespace internal 2650 } // namespace internal
2652 } // namespace v8 2651 } // namespace v8
OLDNEW
« no previous file with comments | « src/ppc/lithium-codegen-ppc.cc ('k') | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698