| 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 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 LInstruction* LChunkBuilder::DoMathTan(HUnaryMathOperation* instr) { | 1211 LInstruction* LChunkBuilder::DoMathTan(HUnaryMathOperation* instr) { |
| 1212 LOperand* input = UseFixedDouble(instr->value(), f4); | 1212 LOperand* input = UseFixedDouble(instr->value(), f4); |
| 1213 LMathTan* result = new(zone()) LMathTan(input); | 1213 LMathTan* result = new(zone()) LMathTan(input); |
| 1214 return MarkAsCall(DefineFixedDouble(result, f4), instr); | 1214 return MarkAsCall(DefineFixedDouble(result, f4), instr); |
| 1215 } | 1215 } |
| 1216 | 1216 |
| 1217 | 1217 |
| 1218 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { | 1218 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { |
| 1219 ASSERT(instr->representation().IsDouble()); | 1219 ASSERT(instr->representation().IsDouble()); |
| 1220 ASSERT(instr->value()->representation().IsDouble()); | 1220 ASSERT(instr->value()->representation().IsDouble()); |
| 1221 LOperand* input = UseTempRegister(instr->value()); | 1221 LOperand* input = UseRegister(instr->value()); |
| 1222 LOperand* temp1 = TempRegister(); | 1222 LOperand* temp1 = TempRegister(); |
| 1223 LOperand* temp2 = TempRegister(); | 1223 LOperand* temp2 = TempRegister(); |
| 1224 LOperand* double_temp = FixedTemp(f6); // Chosen by fair dice roll. | 1224 LOperand* double_temp = FixedTemp(f6); // Chosen by fair dice roll. |
| 1225 LMathExp* result = new(zone()) LMathExp(input, double_temp, temp1, temp2); | 1225 LMathExp* result = new(zone()) LMathExp(input, double_temp, temp1, temp2); |
| 1226 return DefineAsRegister(result); | 1226 return DefineAsRegister(result); |
| 1227 } | 1227 } |
| 1228 | 1228 |
| 1229 | 1229 |
| 1230 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { | 1230 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { |
| 1231 // Input cannot be the same as the result, see LCodeGen::DoMathPowHalf. | 1231 // Input cannot be the same as the result, see LCodeGen::DoMathPowHalf. |
| (...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2504 | 2504 |
| 2505 | 2505 |
| 2506 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2506 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2507 LOperand* object = UseRegister(instr->object()); | 2507 LOperand* object = UseRegister(instr->object()); |
| 2508 LOperand* index = UseRegister(instr->index()); | 2508 LOperand* index = UseRegister(instr->index()); |
| 2509 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2509 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2510 } | 2510 } |
| 2511 | 2511 |
| 2512 | 2512 |
| 2513 } } // namespace v8::internal | 2513 } } // namespace v8::internal |
| OLD | NEW |