| 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 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 LArithmeticT* result = | 1323 LArithmeticT* result = |
| 1324 new(zone()) LArithmeticT(instr->op(), context, left, right); | 1324 new(zone()) LArithmeticT(instr->op(), context, left, right); |
| 1325 return MarkAsCall(DefineFixed(result, eax), instr); | 1325 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1326 } | 1326 } |
| 1327 } | 1327 } |
| 1328 | 1328 |
| 1329 | 1329 |
| 1330 LInstruction* LChunkBuilder::DoBitNot(HBitNot* instr) { | 1330 LInstruction* LChunkBuilder::DoBitNot(HBitNot* instr) { |
| 1331 ASSERT(instr->value()->representation().IsInteger32()); | 1331 ASSERT(instr->value()->representation().IsInteger32()); |
| 1332 ASSERT(instr->representation().IsInteger32()); | 1332 ASSERT(instr->representation().IsInteger32()); |
| 1333 if (instr->HasNoUses()) return NULL; |
| 1333 LOperand* input = UseRegisterAtStart(instr->value()); | 1334 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1334 LBitNotI* result = new(zone()) LBitNotI(input); | 1335 LBitNotI* result = new(zone()) LBitNotI(input); |
| 1335 return DefineSameAsFirst(result); | 1336 return DefineSameAsFirst(result); |
| 1336 } | 1337 } |
| 1337 | 1338 |
| 1338 | 1339 |
| 1339 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) { | 1340 LInstruction* LChunkBuilder::DoDiv(HDiv* instr) { |
| 1340 if (instr->representation().IsDouble()) { | 1341 if (instr->representation().IsDouble()) { |
| 1341 return DoArithmeticD(Token::DIV, instr); | 1342 return DoArithmeticD(Token::DIV, instr); |
| 1342 } else if (instr->representation().IsInteger32()) { | 1343 } else if (instr->representation().IsInteger32()) { |
| (...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2441 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2442 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2442 LOperand* object = UseRegister(instr->object()); | 2443 LOperand* object = UseRegister(instr->object()); |
| 2443 LOperand* index = UseTempRegister(instr->index()); | 2444 LOperand* index = UseTempRegister(instr->index()); |
| 2444 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2445 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2445 } | 2446 } |
| 2446 | 2447 |
| 2447 | 2448 |
| 2448 } } // namespace v8::internal | 2449 } } // namespace v8::internal |
| 2449 | 2450 |
| 2450 #endif // V8_TARGET_ARCH_IA32 | 2451 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |