| 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 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1302 LOperand* input = UseRegisterAtStart(instr->value()); | 1302 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1303 LMathAbs* result = new(zone()) LMathAbs(context, input); | 1303 LMathAbs* result = new(zone()) LMathAbs(context, input); |
| 1304 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); | 1304 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); |
| 1305 } | 1305 } |
| 1306 | 1306 |
| 1307 | 1307 |
| 1308 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { | 1308 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { |
| 1309 ASSERT(instr->representation().IsDouble()); | 1309 ASSERT(instr->representation().IsDouble()); |
| 1310 ASSERT(instr->value()->representation().IsDouble()); | 1310 ASSERT(instr->value()->representation().IsDouble()); |
| 1311 LOperand* input = UseRegisterAtStart(instr->value()); | 1311 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1312 LMathLog* result = new(zone()) LMathLog(input); | 1312 return MarkAsCall(DefineSameAsFirst(new(zone()) LMathLog(input)), instr); |
| 1313 return DefineSameAsFirst(result); | |
| 1314 } | 1313 } |
| 1315 | 1314 |
| 1316 | 1315 |
| 1317 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { | 1316 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { |
| 1318 ASSERT(instr->representation().IsDouble()); | 1317 ASSERT(instr->representation().IsDouble()); |
| 1319 ASSERT(instr->value()->representation().IsDouble()); | 1318 ASSERT(instr->value()->representation().IsDouble()); |
| 1320 LOperand* value = UseTempRegister(instr->value()); | 1319 LOperand* value = UseTempRegister(instr->value()); |
| 1321 LOperand* temp1 = TempRegister(); | 1320 LOperand* temp1 = TempRegister(); |
| 1322 LOperand* temp2 = TempRegister(); | 1321 LOperand* temp2 = TempRegister(); |
| 1323 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); | 1322 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); |
| (...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2765 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2764 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2766 LOperand* object = UseRegister(instr->object()); | 2765 LOperand* object = UseRegister(instr->object()); |
| 2767 LOperand* index = UseTempRegister(instr->index()); | 2766 LOperand* index = UseTempRegister(instr->index()); |
| 2768 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2767 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2769 } | 2768 } |
| 2770 | 2769 |
| 2771 | 2770 |
| 2772 } } // namespace v8::internal | 2771 } } // namespace v8::internal |
| 2773 | 2772 |
| 2774 #endif // V8_TARGET_ARCH_IA32 | 2773 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |