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

Side by Side Diff: src/arm64/lithium-arm64.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, 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/arm64/deoptimizer-arm64.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/arm64/lithium-arm64.h" 5 #include "src/arm64/lithium-arm64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/arm64/lithium-codegen-arm64.h" 9 #include "src/arm64/lithium-codegen-arm64.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 case Token::SAR: return "sar-t"; 368 case Token::SAR: return "sar-t";
369 case Token::SHR: return "shr-t"; 369 case Token::SHR: return "shr-t";
370 default: 370 default:
371 UNREACHABLE(); 371 UNREACHABLE();
372 return NULL; 372 return NULL;
373 } 373 }
374 } 374 }
375 375
376 376
377 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { 377 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) {
378 return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, reg.code()); 378 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER,
379 Register::ToAllocationIndex(reg));
379 } 380 }
380 381
381 382
382 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { 383 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) {
383 return new (zone()) 384 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER,
384 LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code()); 385 DoubleRegister::ToAllocationIndex(reg));
385 } 386 }
386 387
387 388
388 LOperand* LChunkBuilder::Use(HValue* value, LUnallocated* operand) { 389 LOperand* LChunkBuilder::Use(HValue* value, LUnallocated* operand) {
389 if (value->EmitAtUses()) { 390 if (value->EmitAtUses()) {
390 HInstruction* instr = HInstruction::cast(value); 391 HInstruction* instr = HInstruction::cast(value);
391 VisitInstruction(instr); 392 VisitInstruction(instr);
392 } 393 }
393 operand->set_virtual_register(value->id()); 394 operand->set_virtual_register(value->id());
394 return operand; 395 return operand;
(...skipping 2392 matching lines...) Expand 10 before | Expand all | Expand 10 after
2787 LOperand* context = UseFixed(instr->context(), cp); 2788 LOperand* context = UseFixed(instr->context(), cp);
2788 LOperand* function = UseRegisterAtStart(instr->function()); 2789 LOperand* function = UseRegisterAtStart(instr->function());
2789 LAllocateBlockContext* result = 2790 LAllocateBlockContext* result =
2790 new(zone()) LAllocateBlockContext(context, function); 2791 new(zone()) LAllocateBlockContext(context, function);
2791 return MarkAsCall(DefineFixed(result, cp), instr); 2792 return MarkAsCall(DefineFixed(result, cp), instr);
2792 } 2793 }
2793 2794
2794 2795
2795 } // namespace internal 2796 } // namespace internal
2796 } // namespace v8 2797 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/deoptimizer-arm64.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698