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 "v8.h" | 5 #include "v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "lithium-allocator-inl.h" | 9 #include "lithium-allocator-inl.h" |
10 #include "x64/lithium-x64.h" | 10 #include "x64/lithium-x64.h" |
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1897 } else if (to.IsSmi()) { | 1897 } else if (to.IsSmi()) { |
1898 LOperand* value = UseRegister(val); | 1898 LOperand* value = UseRegister(val); |
1899 LInstruction* result = DefineAsRegister(new(zone()) LSmiTag(value)); | 1899 LInstruction* result = DefineAsRegister(new(zone()) LSmiTag(value)); |
1900 if (instr->CheckFlag(HValue::kCanOverflow)) { | 1900 if (instr->CheckFlag(HValue::kCanOverflow)) { |
1901 result = AssignEnvironment(result); | 1901 result = AssignEnvironment(result); |
1902 } | 1902 } |
1903 return result; | 1903 return result; |
1904 } else { | 1904 } else { |
1905 ASSERT(to.IsDouble()); | 1905 ASSERT(to.IsDouble()); |
1906 if (val->CheckFlag(HInstruction::kUint32)) { | 1906 if (val->CheckFlag(HInstruction::kUint32)) { |
1907 LOperand* temp = FixedTemp(xmm1); | 1907 return DefineAsRegister(new(zone()) LUint32ToDouble(UseRegister(val))); |
1908 return DefineAsRegister( | |
1909 new(zone()) LUint32ToDouble(UseRegister(val), temp)); | |
1910 } else { | 1908 } else { |
1911 LOperand* value = Use(val); | 1909 LOperand* value = Use(val); |
1912 return DefineAsRegister(new(zone()) LInteger32ToDouble(value)); | 1910 return DefineAsRegister(new(zone()) LInteger32ToDouble(value)); |
1913 } | 1911 } |
1914 } | 1912 } |
1915 } | 1913 } |
1916 UNREACHABLE(); | 1914 UNREACHABLE(); |
1917 return NULL; | 1915 return NULL; |
1918 } | 1916 } |
1919 | 1917 |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2604 LOperand* index = UseTempRegister(instr->index()); | 2602 LOperand* index = UseTempRegister(instr->index()); |
2605 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2603 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2606 LInstruction* result = DefineSameAsFirst(load); | 2604 LInstruction* result = DefineSameAsFirst(load); |
2607 return AssignPointerMap(result); | 2605 return AssignPointerMap(result); |
2608 } | 2606 } |
2609 | 2607 |
2610 | 2608 |
2611 } } // namespace v8::internal | 2609 } } // namespace v8::internal |
2612 | 2610 |
2613 #endif // V8_TARGET_ARCH_X64 | 2611 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |