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 1911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1922 ASSERT(input_rep.IsTagged()); | 1922 ASSERT(input_rep.IsTagged()); |
1923 // Register allocator doesn't (yet) support allocation of double | 1923 // Register allocator doesn't (yet) support allocation of double |
1924 // temps. Reserve d1 explicitly. | 1924 // temps. Reserve d1 explicitly. |
1925 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11)); | 1925 LClampTToUint8* result = new(zone()) LClampTToUint8(reg, FixedTemp(d11)); |
1926 return AssignEnvironment(DefineAsRegister(result)); | 1926 return AssignEnvironment(DefineAsRegister(result)); |
1927 } | 1927 } |
1928 } | 1928 } |
1929 | 1929 |
1930 | 1930 |
1931 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1931 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1932 return new(zone()) LReturn(UseFixed(instr->value(), r0)); | 1932 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
| 1933 return new(zone()) LReturn(UseFixed(instr->value(), r0), |
| 1934 parameter_count); |
1933 } | 1935 } |
1934 | 1936 |
1935 | 1937 |
1936 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 1938 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
1937 Representation r = instr->representation(); | 1939 Representation r = instr->representation(); |
1938 if (r.IsInteger32()) { | 1940 if (r.IsInteger32()) { |
1939 return DefineAsRegister(new(zone()) LConstantI); | 1941 return DefineAsRegister(new(zone()) LConstantI); |
1940 } else if (r.IsDouble()) { | 1942 } else if (r.IsDouble()) { |
1941 return DefineAsRegister(new(zone()) LConstantD); | 1943 return DefineAsRegister(new(zone()) LConstantD); |
1942 } else if (r.IsTagged()) { | 1944 } else if (r.IsTagged()) { |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2511 | 2513 |
2512 | 2514 |
2513 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2515 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2514 LOperand* object = UseRegister(instr->object()); | 2516 LOperand* object = UseRegister(instr->object()); |
2515 LOperand* index = UseRegister(instr->index()); | 2517 LOperand* index = UseRegister(instr->index()); |
2516 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2518 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2517 } | 2519 } |
2518 | 2520 |
2519 | 2521 |
2520 } } // namespace v8::internal | 2522 } } // namespace v8::internal |
OLD | NEW |