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

Side by Side Diff: src/ia32/lithium-ia32.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/ia32/lithium-gap-resolver-ia32.cc ('k') | src/ia32/macro-assembler-ia32.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/ia32/lithium-ia32.h" 5 #include "src/ia32/lithium-ia32.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 if (i < blocks->length() - 1) next = blocks->at(i + 1); 475 if (i < blocks->length() - 1) next = blocks->at(i + 1);
476 DoBasicBlock(blocks->at(i), next); 476 DoBasicBlock(blocks->at(i), next);
477 if (is_aborted()) return NULL; 477 if (is_aborted()) return NULL;
478 } 478 }
479 status_ = DONE; 479 status_ = DONE;
480 return chunk_; 480 return chunk_;
481 } 481 }
482 482
483 483
484 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { 484 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) {
485 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, 485 return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, reg.code());
486 Register::ToAllocationIndex(reg));
487 } 486 }
488 487
489 488
490 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) { 489 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) {
491 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, 490 return new (zone())
492 XMMRegister::ToAllocationIndex(reg)); 491 LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code());
493 } 492 }
494 493
495 494
496 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) { 495 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) {
497 return Use(value, ToUnallocated(fixed_register)); 496 return Use(value, ToUnallocated(fixed_register));
498 } 497 }
499 498
500 499
501 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, XMMRegister reg) { 500 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, XMMRegister reg) {
502 return Use(value, ToUnallocated(reg)); 501 return Use(value, ToUnallocated(reg));
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2754 LAllocateBlockContext* result = 2753 LAllocateBlockContext* result =
2755 new(zone()) LAllocateBlockContext(context, function); 2754 new(zone()) LAllocateBlockContext(context, function);
2756 return MarkAsCall(DefineFixed(result, esi), instr); 2755 return MarkAsCall(DefineFixed(result, esi), instr);
2757 } 2756 }
2758 2757
2759 2758
2760 } // namespace internal 2759 } // namespace internal
2761 } // namespace v8 2760 } // namespace v8
2762 2761
2763 #endif // V8_TARGET_ARCH_IA32 2762 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-gap-resolver-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698