| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1842 ASSERT(input_rep.IsSmiOrTagged()); | 1842 ASSERT(input_rep.IsSmiOrTagged()); |
| 1843 // Register allocator doesn't (yet) support allocation of double | 1843 // Register allocator doesn't (yet) support allocation of double |
| 1844 // temps. Reserve xmm1 explicitly. | 1844 // temps. Reserve xmm1 explicitly. |
| 1845 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, | 1845 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, |
| 1846 FixedTemp(xmm1)); | 1846 FixedTemp(xmm1)); |
| 1847 return AssignEnvironment(DefineSameAsFirst(result)); | 1847 return AssignEnvironment(DefineSameAsFirst(result)); |
| 1848 } | 1848 } |
| 1849 } | 1849 } |
| 1850 | 1850 |
| 1851 | 1851 |
| 1852 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { | |
| 1853 HValue* value = instr->value(); | |
| 1854 ASSERT(value->representation().IsDouble()); | |
| 1855 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); | |
| 1856 } | |
| 1857 | |
| 1858 | |
| 1859 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { | |
| 1860 LOperand* lo = UseRegister(instr->lo()); | |
| 1861 LOperand* hi = UseRegister(instr->hi()); | |
| 1862 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo)); | |
| 1863 } | |
| 1864 | |
| 1865 | |
| 1866 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1852 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
| 1867 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), rsi) : NULL; | 1853 LOperand* context = info()->IsStub() ? UseFixed(instr->context(), rsi) : NULL; |
| 1868 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1854 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
| 1869 return new(zone()) LReturn( | 1855 return new(zone()) LReturn( |
| 1870 UseFixed(instr->value(), rax), context, parameter_count); | 1856 UseFixed(instr->value(), rax), context, parameter_count); |
| 1871 } | 1857 } |
| 1872 | 1858 |
| 1873 | 1859 |
| 1874 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 1860 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
| 1875 Representation r = instr->representation(); | 1861 Representation r = instr->representation(); |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2450 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2436 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2451 LOperand* object = UseRegister(instr->object()); | 2437 LOperand* object = UseRegister(instr->object()); |
| 2452 LOperand* index = UseTempRegister(instr->index()); | 2438 LOperand* index = UseTempRegister(instr->index()); |
| 2453 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2439 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2454 } | 2440 } |
| 2455 | 2441 |
| 2456 | 2442 |
| 2457 } } // namespace v8::internal | 2443 } } // namespace v8::internal |
| 2458 | 2444 |
| 2459 #endif // V8_TARGET_ARCH_X64 | 2445 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |