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

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

Issue 1365073002: Revert of Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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, reg.code()); 485 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER,
486 Register::ToAllocationIndex(reg));
486 } 487 }
487 488
488 489
489 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) { 490 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) {
490 return new (zone()) 491 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER,
491 LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code()); 492 XMMRegister::ToAllocationIndex(reg));
492 } 493 }
493 494
494 495
495 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) { 496 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) {
496 return Use(value, ToUnallocated(fixed_register)); 497 return Use(value, ToUnallocated(fixed_register));
497 } 498 }
498 499
499 500
500 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, XMMRegister reg) { 501 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, XMMRegister reg) {
501 return Use(value, ToUnallocated(reg)); 502 return Use(value, ToUnallocated(reg));
(...skipping 2251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2753 LAllocateBlockContext* result = 2754 LAllocateBlockContext* result =
2754 new(zone()) LAllocateBlockContext(context, function); 2755 new(zone()) LAllocateBlockContext(context, function);
2755 return MarkAsCall(DefineFixed(result, esi), instr); 2756 return MarkAsCall(DefineFixed(result, esi), instr);
2756 } 2757 }
2757 2758
2758 2759
2759 } // namespace internal 2760 } // namespace internal
2760 } // namespace v8 2761 } // namespace v8
2761 2762
2762 #endif // V8_TARGET_ARCH_IA32 2763 #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