| 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 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1309 LOperand* dividend = UseFixed(instr->left(), a0); | 1309 LOperand* dividend = UseFixed(instr->left(), a0); |
| 1310 LOperand* divisor = UseFixed(instr->right(), a1); | 1310 LOperand* divisor = UseFixed(instr->right(), a1); |
| 1311 return AssignEnvironment(AssignPointerMap( | 1311 return AssignEnvironment(AssignPointerMap( |
| 1312 DefineFixed(new(zone()) LDivI(dividend, divisor), v0))); | 1312 DefineFixed(new(zone()) LDivI(dividend, divisor), v0))); |
| 1313 } else { | 1313 } else { |
| 1314 return DoArithmeticT(Token::DIV, instr); | 1314 return DoArithmeticT(Token::DIV, instr); |
| 1315 } | 1315 } |
| 1316 } | 1316 } |
| 1317 | 1317 |
| 1318 | 1318 |
| 1319 LInstruction* LChunkBuilder::DoMathFloorOfDiv(HMathFloorOfDiv* instr) { | |
| 1320 UNIMPLEMENTED(); | |
| 1321 return NULL; | |
| 1322 } | |
| 1323 | |
| 1324 | |
| 1325 LInstruction* LChunkBuilder::DoMod(HMod* instr) { | 1319 LInstruction* LChunkBuilder::DoMod(HMod* instr) { |
| 1326 if (instr->representation().IsInteger32()) { | 1320 if (instr->representation().IsInteger32()) { |
| 1327 ASSERT(instr->left()->representation().IsInteger32()); | 1321 ASSERT(instr->left()->representation().IsInteger32()); |
| 1328 ASSERT(instr->right()->representation().IsInteger32()); | 1322 ASSERT(instr->right()->representation().IsInteger32()); |
| 1329 | 1323 |
| 1330 LModI* mod; | 1324 LModI* mod; |
| 1331 if (instr->HasPowerOf2Divisor()) { | 1325 if (instr->HasPowerOf2Divisor()) { |
| 1332 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); | 1326 ASSERT(!instr->CheckFlag(HValue::kCanBeDivByZero)); |
| 1333 LOperand* value = UseRegisterAtStart(instr->left()); | 1327 LOperand* value = UseRegisterAtStart(instr->left()); |
| 1334 mod = new(zone()) LModI(value, UseOrConstant(instr->right())); | 1328 mod = new(zone()) LModI(value, UseOrConstant(instr->right())); |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2337 | 2331 |
| 2338 | 2332 |
| 2339 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2333 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2340 LOperand* object = UseRegister(instr->object()); | 2334 LOperand* object = UseRegister(instr->object()); |
| 2341 LOperand* index = UseRegister(instr->index()); | 2335 LOperand* index = UseRegister(instr->index()); |
| 2342 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2336 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2343 } | 2337 } |
| 2344 | 2338 |
| 2345 | 2339 |
| 2346 } } // namespace v8::internal | 2340 } } // namespace v8::internal |
| OLD | NEW |