| 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 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1348 LOperand* divisor = UseRegister(instr->right()); | 1348 LOperand* divisor = UseRegister(instr->right()); |
| 1349 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); | 1349 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); |
| 1350 return AssignEnvironment(DefineFixed(result, eax)); | 1350 return AssignEnvironment(DefineFixed(result, eax)); |
| 1351 } else { | 1351 } else { |
| 1352 ASSERT(instr->representation().IsTagged()); | 1352 ASSERT(instr->representation().IsTagged()); |
| 1353 return DoArithmeticT(Token::DIV, instr); | 1353 return DoArithmeticT(Token::DIV, instr); |
| 1354 } | 1354 } |
| 1355 } | 1355 } |
| 1356 | 1356 |
| 1357 | 1357 |
| 1358 LInstruction* LChunkBuilder::DoMathFloorOfDiv(HMathFloorOfDiv* instr) { |
| 1359 UNIMPLEMENTED(); |
| 1360 return NULL; |
| 1361 } |
| 1362 |
| 1363 |
| 1358 LInstruction* LChunkBuilder::DoMod(HMod* instr) { | 1364 LInstruction* LChunkBuilder::DoMod(HMod* instr) { |
| 1359 if (instr->representation().IsInteger32()) { | 1365 if (instr->representation().IsInteger32()) { |
| 1360 ASSERT(instr->left()->representation().IsInteger32()); | 1366 ASSERT(instr->left()->representation().IsInteger32()); |
| 1361 ASSERT(instr->right()->representation().IsInteger32()); | 1367 ASSERT(instr->right()->representation().IsInteger32()); |
| 1362 | 1368 |
| 1363 LInstruction* result; | 1369 LInstruction* result; |
| 1364 if (instr->HasPowerOf2Divisor()) { | 1370 if (instr->HasPowerOf2Divisor()) { |
| 1365 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); | 1371 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); |
| 1366 LOperand* value = UseRegisterAtStart(instr->left()); | 1372 LOperand* value = UseRegisterAtStart(instr->left()); |
| 1367 LModI* mod = | 1373 LModI* mod = |
| (...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2442 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2448 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2443 LOperand* object = UseRegister(instr->object()); | 2449 LOperand* object = UseRegister(instr->object()); |
| 2444 LOperand* index = UseTempRegister(instr->index()); | 2450 LOperand* index = UseTempRegister(instr->index()); |
| 2445 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2451 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2446 } | 2452 } |
| 2447 | 2453 |
| 2448 | 2454 |
| 2449 } } // namespace v8::internal | 2455 } } // namespace v8::internal |
| 2450 | 2456 |
| 2451 #endif // V8_TARGET_ARCH_IA32 | 2457 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |