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 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1861 } else { | 1861 } else { |
1862 ASSERT(input_rep.IsSmiOrTagged()); | 1862 ASSERT(input_rep.IsSmiOrTagged()); |
1863 // Register allocator doesn't (yet) support allocation of double | 1863 // Register allocator doesn't (yet) support allocation of double |
1864 // temps. Reserve f22 explicitly. | 1864 // temps. Reserve f22 explicitly. |
1865 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(f22)); | 1865 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(f22)); |
1866 return AssignEnvironment(DefineAsRegister(result)); | 1866 return AssignEnvironment(DefineAsRegister(result)); |
1867 } | 1867 } |
1868 } | 1868 } |
1869 | 1869 |
1870 | 1870 |
| 1871 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
| 1872 HValue* value = instr->value(); |
| 1873 ASSERT(value->representation().IsDouble()); |
| 1874 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); |
| 1875 } |
| 1876 |
| 1877 |
| 1878 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { |
| 1879 LOperand* lo = UseRegister(instr->lo()); |
| 1880 LOperand* hi = UseRegister(instr->hi()); |
| 1881 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo)); |
| 1882 } |
| 1883 |
| 1884 |
1871 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1885 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1872 LOperand* context = info()->IsStub() | 1886 LOperand* context = info()->IsStub() |
1873 ? UseFixed(instr->context(), cp) | 1887 ? UseFixed(instr->context(), cp) |
1874 : NULL; | 1888 : NULL; |
1875 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1889 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
1876 return new(zone()) LReturn(UseFixed(instr->value(), v0), context, | 1890 return new(zone()) LReturn(UseFixed(instr->value(), v0), context, |
1877 parameter_count); | 1891 parameter_count); |
1878 } | 1892 } |
1879 | 1893 |
1880 | 1894 |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2407 | 2421 |
2408 | 2422 |
2409 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2423 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2410 LOperand* object = UseRegister(instr->object()); | 2424 LOperand* object = UseRegister(instr->object()); |
2411 LOperand* index = UseRegister(instr->index()); | 2425 LOperand* index = UseRegister(instr->index()); |
2412 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2426 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2413 } | 2427 } |
2414 | 2428 |
2415 | 2429 |
2416 } } // namespace v8::internal | 2430 } } // namespace v8::internal |
OLD | NEW |