| 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 1824 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1835     // Register allocator doesn't (yet) support allocation of double |  1835     // Register allocator doesn't (yet) support allocation of double | 
|  1836     // temps. Reserve xmm1 explicitly. |  1836     // temps. Reserve xmm1 explicitly. | 
|  1837     LClampTToUint8* result = new(zone()) LClampTToUint8(reg, |  1837     LClampTToUint8* result = new(zone()) LClampTToUint8(reg, | 
|  1838                                                         FixedTemp(xmm1)); |  1838                                                         FixedTemp(xmm1)); | 
|  1839     return AssignEnvironment(DefineSameAsFirst(result)); |  1839     return AssignEnvironment(DefineSameAsFirst(result)); | 
|  1840   } |  1840   } | 
|  1841 } |  1841 } | 
|  1842  |  1842  | 
|  1843  |  1843  | 
|  1844 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |  1844 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 
|  1845   return new(zone()) LReturn(UseFixed(instr->value(), rax)); |  1845   LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 
 |  1846   return new(zone()) LReturn(UseFixed(instr->value(), rax), | 
 |  1847                              parameter_count); | 
|  1846 } |  1848 } | 
|  1847  |  1849  | 
|  1848  |  1850  | 
|  1849 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |  1851 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 
|  1850   Representation r = instr->representation(); |  1852   Representation r = instr->representation(); | 
|  1851   if (r.IsInteger32()) { |  1853   if (r.IsInteger32()) { | 
|  1852     return DefineAsRegister(new(zone()) LConstantI); |  1854     return DefineAsRegister(new(zone()) LConstantI); | 
|  1853   } else if (r.IsDouble()) { |  1855   } else if (r.IsDouble()) { | 
|  1854     LOperand* temp = TempRegister(); |  1856     LOperand* temp = TempRegister(); | 
|  1855     return DefineAsRegister(new(zone()) LConstantD(temp)); |  1857     return DefineAsRegister(new(zone()) LConstantD(temp)); | 
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2428 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |  2430 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 
|  2429   LOperand* object = UseRegister(instr->object()); |  2431   LOperand* object = UseRegister(instr->object()); | 
|  2430   LOperand* index = UseTempRegister(instr->index()); |  2432   LOperand* index = UseTempRegister(instr->index()); | 
|  2431   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |  2433   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 
|  2432 } |  2434 } | 
|  2433  |  2435  | 
|  2434  |  2436  | 
|  2435 } }  // namespace v8::internal |  2437 } }  // namespace v8::internal | 
|  2436  |  2438  | 
|  2437 #endif  // V8_TARGET_ARCH_X64 |  2439 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW |