| 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 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1797 ASSERT(input_rep.IsTagged()); | 1797 ASSERT(input_rep.IsTagged()); |
| 1798 // Register allocator doesn't (yet) support allocation of double | 1798 // Register allocator doesn't (yet) support allocation of double |
| 1799 // temps. Reserve f22 explicitly. | 1799 // temps. Reserve f22 explicitly. |
| 1800 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(f22)); | 1800 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(f22)); |
| 1801 return AssignEnvironment(DefineAsRegister(result)); | 1801 return AssignEnvironment(DefineAsRegister(result)); |
| 1802 } | 1802 } |
| 1803 } | 1803 } |
| 1804 | 1804 |
| 1805 | 1805 |
| 1806 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1806 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
| 1807 return new(zone()) LReturn(UseFixed(instr->value(), v0)); | 1807 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
| 1808 return new(zone()) LReturn(UseFixed(instr->value(), v0), |
| 1809 parameter_count); |
| 1808 } | 1810 } |
| 1809 | 1811 |
| 1810 | 1812 |
| 1811 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 1813 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
| 1812 Representation r = instr->representation(); | 1814 Representation r = instr->representation(); |
| 1813 if (r.IsInteger32()) { | 1815 if (r.IsInteger32()) { |
| 1814 return DefineAsRegister(new(zone()) LConstantI); | 1816 return DefineAsRegister(new(zone()) LConstantI); |
| 1815 } else if (r.IsDouble()) { | 1817 } else if (r.IsDouble()) { |
| 1816 return DefineAsRegister(new(zone()) LConstantD); | 1818 return DefineAsRegister(new(zone()) LConstantD); |
| 1817 } else if (r.IsTagged()) { | 1819 } else if (r.IsTagged()) { |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2387 | 2389 |
| 2388 | 2390 |
| 2389 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2391 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2390 LOperand* object = UseRegister(instr->object()); | 2392 LOperand* object = UseRegister(instr->object()); |
| 2391 LOperand* index = UseRegister(instr->index()); | 2393 LOperand* index = UseRegister(instr->index()); |
| 2392 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2394 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2393 } | 2395 } |
| 2394 | 2396 |
| 2395 | 2397 |
| 2396 } } // namespace v8::internal | 2398 } } // namespace v8::internal |
| OLD | NEW |