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