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 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 case kMathSqrt: return DoMathSqrt(instr); | 1194 case kMathSqrt: return DoMathSqrt(instr); |
1195 case kMathPowHalf: return DoMathPowHalf(instr); | 1195 case kMathPowHalf: return DoMathPowHalf(instr); |
1196 default: | 1196 default: |
1197 UNREACHABLE(); | 1197 UNREACHABLE(); |
1198 return NULL; | 1198 return NULL; |
1199 } | 1199 } |
1200 } | 1200 } |
1201 | 1201 |
1202 | 1202 |
1203 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { | 1203 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { |
| 1204 ASSERT(instr->representation().IsDouble()); |
| 1205 ASSERT(instr->value()->representation().IsDouble()); |
1204 LOperand* input = UseFixedDouble(instr->value(), f4); | 1206 LOperand* input = UseFixedDouble(instr->value(), f4); |
1205 LMathLog* result = new(zone()) LMathLog(input); | 1207 return MarkAsCall(DefineFixedDouble(new(zone()) LMathLog(input), f4), instr); |
1206 return MarkAsCall(DefineFixedDouble(result, f4), instr); | |
1207 } | 1208 } |
1208 | 1209 |
1209 | 1210 |
1210 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { | 1211 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { |
1211 ASSERT(instr->representation().IsDouble()); | 1212 ASSERT(instr->representation().IsDouble()); |
1212 ASSERT(instr->value()->representation().IsDouble()); | 1213 ASSERT(instr->value()->representation().IsDouble()); |
1213 LOperand* input = UseRegister(instr->value()); | 1214 LOperand* input = UseRegister(instr->value()); |
1214 LOperand* temp1 = TempRegister(); | 1215 LOperand* temp1 = TempRegister(); |
1215 LOperand* temp2 = TempRegister(); | 1216 LOperand* temp2 = TempRegister(); |
1216 LOperand* double_temp = FixedTemp(f6); // Chosen by fair dice roll. | 1217 LOperand* double_temp = FixedTemp(f6); // Chosen by fair dice roll. |
(...skipping 1357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2574 | 2575 |
2575 | 2576 |
2576 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2577 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2577 LOperand* object = UseRegister(instr->object()); | 2578 LOperand* object = UseRegister(instr->object()); |
2578 LOperand* index = UseRegister(instr->index()); | 2579 LOperand* index = UseRegister(instr->index()); |
2579 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2580 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2580 } | 2581 } |
2581 | 2582 |
2582 | 2583 |
2583 } } // namespace v8::internal | 2584 } } // namespace v8::internal |
OLD | NEW |