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 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1216 LOperand* input = UseRegisterAtStart(instr->value()); | 1216 LOperand* input = UseRegisterAtStart(instr->value()); |
1217 LMathAbs* result = new(zone()) LMathAbs(context, input); | 1217 LMathAbs* result = new(zone()) LMathAbs(context, input); |
1218 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); | 1218 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); |
1219 } | 1219 } |
1220 | 1220 |
1221 | 1221 |
1222 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { | 1222 LInstruction* LChunkBuilder::DoMathLog(HUnaryMathOperation* instr) { |
1223 ASSERT(instr->representation().IsDouble()); | 1223 ASSERT(instr->representation().IsDouble()); |
1224 ASSERT(instr->value()->representation().IsDouble()); | 1224 ASSERT(instr->value()->representation().IsDouble()); |
1225 LOperand* input = UseRegisterAtStart(instr->value()); | 1225 LOperand* input = UseRegisterAtStart(instr->value()); |
1226 LMathLog* result = new(zone()) LMathLog(input); | 1226 return MarkAsCall(DefineSameAsFirst(new(zone()) LMathLog(input)), instr); |
1227 return DefineSameAsFirst(result); | |
1228 } | 1227 } |
1229 | 1228 |
1230 | 1229 |
1231 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { | 1230 LInstruction* LChunkBuilder::DoMathExp(HUnaryMathOperation* instr) { |
1232 ASSERT(instr->representation().IsDouble()); | 1231 ASSERT(instr->representation().IsDouble()); |
1233 ASSERT(instr->value()->representation().IsDouble()); | 1232 ASSERT(instr->value()->representation().IsDouble()); |
1234 LOperand* value = UseTempRegister(instr->value()); | 1233 LOperand* value = UseTempRegister(instr->value()); |
1235 LOperand* temp1 = TempRegister(); | 1234 LOperand* temp1 = TempRegister(); |
1236 LOperand* temp2 = TempRegister(); | 1235 LOperand* temp2 = TempRegister(); |
1237 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); | 1236 LMathExp* result = new(zone()) LMathExp(value, temp1, temp2); |
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2600 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2599 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2601 LOperand* object = UseRegister(instr->object()); | 2600 LOperand* object = UseRegister(instr->object()); |
2602 LOperand* index = UseTempRegister(instr->index()); | 2601 LOperand* index = UseTempRegister(instr->index()); |
2603 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2602 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2604 } | 2603 } |
2605 | 2604 |
2606 | 2605 |
2607 } } // namespace v8::internal | 2606 } } // namespace v8::internal |
2608 | 2607 |
2609 #endif // V8_TARGET_ARCH_X64 | 2608 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |