| 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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 | 1243 |
| 1244 } else if (instr->representation().IsDouble()) { | 1244 } else if (instr->representation().IsDouble()) { |
| 1245 return DoArithmeticD(Token::MUL, instr); | 1245 return DoArithmeticD(Token::MUL, instr); |
| 1246 | 1246 |
| 1247 } else { | 1247 } else { |
| 1248 return DoArithmeticT(Token::MUL, instr); | 1248 return DoArithmeticT(Token::MUL, instr); |
| 1249 } | 1249 } |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 | 1252 |
| 1253 LInstruction* LChunkBuilder::DoMultiplyAdd(HMultiplyAdd* instr) { |
| 1254 UNIMPLEMENTED(); |
| 1255 return NULL; |
| 1256 } |
| 1257 |
| 1258 |
| 1253 LInstruction* LChunkBuilder::DoSub(HSub* instr) { | 1259 LInstruction* LChunkBuilder::DoSub(HSub* instr) { |
| 1254 if (instr->representation().IsInteger32()) { | 1260 if (instr->representation().IsInteger32()) { |
| 1255 ASSERT(instr->left()->representation().IsInteger32()); | 1261 ASSERT(instr->left()->representation().IsInteger32()); |
| 1256 ASSERT(instr->right()->representation().IsInteger32()); | 1262 ASSERT(instr->right()->representation().IsInteger32()); |
| 1257 LOperand* left = UseRegisterAtStart(instr->left()); | 1263 LOperand* left = UseRegisterAtStart(instr->left()); |
| 1258 LOperand* right = UseOrConstantAtStart(instr->right()); | 1264 LOperand* right = UseOrConstantAtStart(instr->right()); |
| 1259 LSubI* sub = new(zone()) LSubI(left, right); | 1265 LSubI* sub = new(zone()) LSubI(left, right); |
| 1260 LInstruction* result = DefineAsRegister(sub); | 1266 LInstruction* result = DefineAsRegister(sub); |
| 1261 if (instr->CheckFlag(HValue::kCanOverflow)) { | 1267 if (instr->CheckFlag(HValue::kCanOverflow)) { |
| 1262 result = AssignEnvironment(result); | 1268 result = AssignEnvironment(result); |
| (...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2244 | 2250 |
| 2245 | 2251 |
| 2246 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2252 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2247 LOperand* object = UseRegister(instr->object()); | 2253 LOperand* object = UseRegister(instr->object()); |
| 2248 LOperand* index = UseRegister(instr->index()); | 2254 LOperand* index = UseRegister(instr->index()); |
| 2249 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2255 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2250 } | 2256 } |
| 2251 | 2257 |
| 2252 | 2258 |
| 2253 } } // namespace v8::internal | 2259 } } // namespace v8::internal |
| OLD | NEW |