OLD | NEW |
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/mips64/lithium-mips64.h" | 5 #include "src/mips64/lithium-mips64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 if (i < blocks->length() - 1) next = blocks->at(i + 1); | 444 if (i < blocks->length() - 1) next = blocks->at(i + 1); |
445 DoBasicBlock(blocks->at(i), next); | 445 DoBasicBlock(blocks->at(i), next); |
446 if (is_aborted()) return NULL; | 446 if (is_aborted()) return NULL; |
447 } | 447 } |
448 status_ = DONE; | 448 status_ = DONE; |
449 return chunk_; | 449 return chunk_; |
450 } | 450 } |
451 | 451 |
452 | 452 |
453 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { | 453 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { |
454 return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, | 454 return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, reg.code()); |
455 Register::ToAllocationIndex(reg)); | |
456 } | 455 } |
457 | 456 |
458 | 457 |
459 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { | 458 LUnallocated* LChunkBuilder::ToUnallocated(DoubleRegister reg) { |
460 return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, | 459 return new (zone()) |
461 DoubleRegister::ToAllocationIndex(reg)); | 460 LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code()); |
462 } | 461 } |
463 | 462 |
464 | 463 |
465 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) { | 464 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) { |
466 return Use(value, ToUnallocated(fixed_register)); | 465 return Use(value, ToUnallocated(fixed_register)); |
467 } | 466 } |
468 | 467 |
469 | 468 |
470 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, DoubleRegister reg) { | 469 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, DoubleRegister reg) { |
471 return Use(value, ToUnallocated(reg)); | 470 return Use(value, ToUnallocated(reg)); |
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2647 LAllocateBlockContext* result = | 2646 LAllocateBlockContext* result = |
2648 new(zone()) LAllocateBlockContext(context, function); | 2647 new(zone()) LAllocateBlockContext(context, function); |
2649 return MarkAsCall(DefineFixed(result, cp), instr); | 2648 return MarkAsCall(DefineFixed(result, cp), instr); |
2650 } | 2649 } |
2651 | 2650 |
2652 | 2651 |
2653 } // namespace internal | 2652 } // namespace internal |
2654 } // namespace v8 | 2653 } // namespace v8 |
2655 | 2654 |
2656 #endif // V8_TARGET_ARCH_MIPS64 | 2655 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |