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

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

Issue 1287383003: Re-reland: Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix MIPS tests again 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/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.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/x64/lithium-x64.h" 5 #include "src/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 if (i < blocks->length() - 1) next = blocks->at(i + 1); 463 if (i < blocks->length() - 1) next = blocks->at(i + 1);
464 DoBasicBlock(blocks->at(i), next); 464 DoBasicBlock(blocks->at(i), next);
465 if (is_aborted()) return NULL; 465 if (is_aborted()) return NULL;
466 } 466 }
467 status_ = DONE; 467 status_ = DONE;
468 return chunk_; 468 return chunk_;
469 } 469 }
470 470
471 471
472 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { 472 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) {
473 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, 473 return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, reg.code());
474 Register::ToAllocationIndex(reg));
475 } 474 }
476 475
477 476
478 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) { 477 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) {
479 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, 478 return new (zone())
480 XMMRegister::ToAllocationIndex(reg)); 479 LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code());
481 } 480 }
482 481
483 482
484 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) { 483 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) {
485 return Use(value, ToUnallocated(fixed_register)); 484 return Use(value, ToUnallocated(fixed_register));
486 } 485 }
487 486
488 487
489 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, XMMRegister reg) { 488 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, XMMRegister reg) {
490 return Use(value, ToUnallocated(reg)); 489 return Use(value, ToUnallocated(reg));
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after
2740 LAllocateBlockContext* result = 2739 LAllocateBlockContext* result =
2741 new(zone()) LAllocateBlockContext(context, function); 2740 new(zone()) LAllocateBlockContext(context, function);
2742 return MarkAsCall(DefineFixed(result, rsi), instr); 2741 return MarkAsCall(DefineFixed(result, rsi), instr);
2743 } 2742 }
2744 2743
2745 2744
2746 } // namespace internal 2745 } // namespace internal
2747 } // namespace v8 2746 } // namespace v8
2748 2747
2749 #endif // V8_TARGET_ARCH_X64 2748 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698