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 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 LOperand* divisor = UseRegister(instr->right()); | 1302 LOperand* divisor = UseRegister(instr->right()); |
1303 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); | 1303 LDivI* result = new(zone()) LDivI(dividend, divisor, temp); |
1304 return AssignEnvironment(DefineFixed(result, rax)); | 1304 return AssignEnvironment(DefineFixed(result, rax)); |
1305 } else { | 1305 } else { |
1306 ASSERT(instr->representation().IsTagged()); | 1306 ASSERT(instr->representation().IsTagged()); |
1307 return DoArithmeticT(Token::DIV, instr); | 1307 return DoArithmeticT(Token::DIV, instr); |
1308 } | 1308 } |
1309 } | 1309 } |
1310 | 1310 |
1311 | 1311 |
| 1312 LInstruction* LChunkBuilder::DoMathFloorOfDiv(HMathFloorOfDiv* instr) { |
| 1313 UNIMPLEMENTED(); |
| 1314 return NULL; |
| 1315 } |
| 1316 |
| 1317 |
1312 LInstruction* LChunkBuilder::DoMod(HMod* instr) { | 1318 LInstruction* LChunkBuilder::DoMod(HMod* instr) { |
1313 if (instr->representation().IsInteger32()) { | 1319 if (instr->representation().IsInteger32()) { |
1314 ASSERT(instr->left()->representation().IsInteger32()); | 1320 ASSERT(instr->left()->representation().IsInteger32()); |
1315 ASSERT(instr->right()->representation().IsInteger32()); | 1321 ASSERT(instr->right()->representation().IsInteger32()); |
1316 | 1322 |
1317 LInstruction* result; | 1323 LInstruction* result; |
1318 if (instr->HasPowerOf2Divisor()) { | 1324 if (instr->HasPowerOf2Divisor()) { |
1319 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); | 1325 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); |
1320 LOperand* value = UseRegisterAtStart(instr->left()); | 1326 LOperand* value = UseRegisterAtStart(instr->left()); |
1321 LModI* mod = | 1327 LModI* mod = |
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2316 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2322 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2317 LOperand* object = UseRegister(instr->object()); | 2323 LOperand* object = UseRegister(instr->object()); |
2318 LOperand* index = UseTempRegister(instr->index()); | 2324 LOperand* index = UseTempRegister(instr->index()); |
2319 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2325 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2320 } | 2326 } |
2321 | 2327 |
2322 | 2328 |
2323 } } // namespace v8::internal | 2329 } } // namespace v8::internal |
2324 | 2330 |
2325 #endif // V8_TARGET_ARCH_X64 | 2331 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |