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 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1347 LOperand* divisor = UseRegister(instr->right()); | 1347 LOperand* divisor = UseRegister(instr->right()); |
1348 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); | 1348 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); |
1349 return AssignEnvironment(DefineFixed(result, eax)); | 1349 return AssignEnvironment(DefineFixed(result, eax)); |
1350 } else { | 1350 } else { |
1351 ASSERT(instr->representation().IsTagged()); | 1351 ASSERT(instr->representation().IsTagged()); |
1352 return DoArithmeticT(Token::DIV, instr); | 1352 return DoArithmeticT(Token::DIV, instr); |
1353 } | 1353 } |
1354 } | 1354 } |
1355 | 1355 |
1356 | 1356 |
| 1357 LInstruction* LChunkBuilder::DoMathFloorOfDiv(HMathFloorOfDiv* instr) { |
| 1358 UNIMPLEMENTED(); |
| 1359 return NULL; |
| 1360 } |
| 1361 |
| 1362 |
1357 LInstruction* LChunkBuilder::DoMod(HMod* instr) { | 1363 LInstruction* LChunkBuilder::DoMod(HMod* instr) { |
1358 if (instr->representation().IsInteger32()) { | 1364 if (instr->representation().IsInteger32()) { |
1359 ASSERT(instr->left()->representation().IsInteger32()); | 1365 ASSERT(instr->left()->representation().IsInteger32()); |
1360 ASSERT(instr->right()->representation().IsInteger32()); | 1366 ASSERT(instr->right()->representation().IsInteger32()); |
1361 | 1367 |
1362 LInstruction* result; | 1368 LInstruction* result; |
1363 if (instr->HasPowerOf2Divisor()) { | 1369 if (instr->HasPowerOf2Divisor()) { |
1364 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); | 1370 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); |
1365 LOperand* value = UseRegisterAtStart(instr->left()); | 1371 LOperand* value = UseRegisterAtStart(instr->left()); |
1366 LModI* mod = | 1372 LModI* mod = |
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2428 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2434 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2429 LOperand* object = UseRegister(instr->object()); | 2435 LOperand* object = UseRegister(instr->object()); |
2430 LOperand* index = UseTempRegister(instr->index()); | 2436 LOperand* index = UseTempRegister(instr->index()); |
2431 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2437 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2432 } | 2438 } |
2433 | 2439 |
2434 | 2440 |
2435 } } // namespace v8::internal | 2441 } } // namespace v8::internal |
2436 | 2442 |
2437 #endif // V8_TARGET_ARCH_IA32 | 2443 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |