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 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 LOperand* divisor = UseRegister(instr->right()); | 1343 LOperand* divisor = UseRegister(instr->right()); |
1344 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); | 1344 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); |
1345 return AssignEnvironment(DefineFixed(result, eax)); | 1345 return AssignEnvironment(DefineFixed(result, eax)); |
1346 } else { | 1346 } else { |
1347 ASSERT(instr->representation().IsTagged()); | 1347 ASSERT(instr->representation().IsTagged()); |
1348 return DoArithmeticT(Token::DIV, instr); | 1348 return DoArithmeticT(Token::DIV, instr); |
1349 } | 1349 } |
1350 } | 1350 } |
1351 | 1351 |
1352 | 1352 |
| 1353 LInstruction* LChunkBuilder::DoMathFloorOfDiv(HMathFloorOfDiv* instr) { |
| 1354 UNIMPLEMENTED(); |
| 1355 return NULL; |
| 1356 } |
| 1357 |
| 1358 |
1353 LInstruction* LChunkBuilder::DoMod(HMod* instr) { | 1359 LInstruction* LChunkBuilder::DoMod(HMod* instr) { |
1354 if (instr->representation().IsInteger32()) { | 1360 if (instr->representation().IsInteger32()) { |
1355 ASSERT(instr->left()->representation().IsInteger32()); | 1361 ASSERT(instr->left()->representation().IsInteger32()); |
1356 ASSERT(instr->right()->representation().IsInteger32()); | 1362 ASSERT(instr->right()->representation().IsInteger32()); |
1357 | 1363 |
1358 LInstruction* result; | 1364 LInstruction* result; |
1359 if (instr->HasPowerOf2Divisor()) { | 1365 if (instr->HasPowerOf2Divisor()) { |
1360 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); | 1366 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); |
1361 LOperand* value = UseRegisterAtStart(instr->left()); | 1367 LOperand* value = UseRegisterAtStart(instr->left()); |
1362 LModI* mod = | 1368 LModI* mod = |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2416 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2422 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2417 LOperand* object = UseRegister(instr->object()); | 2423 LOperand* object = UseRegister(instr->object()); |
2418 LOperand* index = UseTempRegister(instr->index()); | 2424 LOperand* index = UseTempRegister(instr->index()); |
2419 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2425 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2420 } | 2426 } |
2421 | 2427 |
2422 | 2428 |
2423 } } // namespace v8::internal | 2429 } } // namespace v8::internal |
2424 | 2430 |
2425 #endif // V8_TARGET_ARCH_IA32 | 2431 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |