| 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/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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |