OLD | NEW |
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 Loading... |
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, | 378 return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, reg.code()); |
379 Register::ToAllocationIndex(reg)); | |
380 } | 379 } |
381 | 380 |
382 | 381 |
383 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { | 382 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { |
384 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, | 383 return new (zone()) |
385 DoubleRegister::ToAllocationIndex(reg)); | 384 LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code()); |
386 } | 385 } |
387 | 386 |
388 | 387 |
389 LOperand* LChunkBuilder::Use(HValue* value, LUnallocated* operand) { | 388 LOperand* LChunkBuilder::Use(HValue* value, LUnallocated* operand) { |
390 if (value->EmitAtUses()) { | 389 if (value->EmitAtUses()) { |
391 HInstruction* instr = HInstruction::cast(value); | 390 HInstruction* instr = HInstruction::cast(value); |
392 VisitInstruction(instr); | 391 VisitInstruction(instr); |
393 } | 392 } |
394 operand->set_virtual_register(value->id()); | 393 operand->set_virtual_register(value->id()); |
395 return operand; | 394 return operand; |
(...skipping 2392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2788 LOperand* context = UseFixed(instr->context(), cp); | 2787 LOperand* context = UseFixed(instr->context(), cp); |
2789 LOperand* function = UseRegisterAtStart(instr->function()); | 2788 LOperand* function = UseRegisterAtStart(instr->function()); |
2790 LAllocateBlockContext* result = | 2789 LAllocateBlockContext* result = |
2791 new(zone()) LAllocateBlockContext(context, function); | 2790 new(zone()) LAllocateBlockContext(context, function); |
2792 return MarkAsCall(DefineFixed(result, cp), instr); | 2791 return MarkAsCall(DefineFixed(result, cp), instr); |
2793 } | 2792 } |
2794 | 2793 |
2795 | 2794 |
2796 } // namespace internal | 2795 } // namespace internal |
2797 } // namespace v8 | 2796 } // namespace v8 |
OLD | NEW |