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 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1274 return DefineSameAsFirst(mul); | 1274 return DefineSameAsFirst(mul); |
1275 } else if (instr->representation().IsDouble()) { | 1275 } else if (instr->representation().IsDouble()) { |
1276 return DoArithmeticD(Token::MUL, instr); | 1276 return DoArithmeticD(Token::MUL, instr); |
1277 } else { | 1277 } else { |
1278 ASSERT(instr->representation().IsTagged()); | 1278 ASSERT(instr->representation().IsTagged()); |
1279 return DoArithmeticT(Token::MUL, instr); | 1279 return DoArithmeticT(Token::MUL, instr); |
1280 } | 1280 } |
1281 } | 1281 } |
1282 | 1282 |
1283 | 1283 |
| 1284 LInstruction* LChunkBuilder::DoMultiplyAdd(HMultiplyAdd* instr) { |
| 1285 UNIMPLEMENTED(); |
| 1286 return NULL; |
| 1287 } |
| 1288 |
| 1289 |
1284 LInstruction* LChunkBuilder::DoSub(HSub* instr) { | 1290 LInstruction* LChunkBuilder::DoSub(HSub* instr) { |
1285 if (instr->representation().IsInteger32()) { | 1291 if (instr->representation().IsInteger32()) { |
1286 ASSERT(instr->left()->representation().IsInteger32()); | 1292 ASSERT(instr->left()->representation().IsInteger32()); |
1287 ASSERT(instr->right()->representation().IsInteger32()); | 1293 ASSERT(instr->right()->representation().IsInteger32()); |
1288 LOperand* left = UseRegisterAtStart(instr->left()); | 1294 LOperand* left = UseRegisterAtStart(instr->left()); |
1289 LOperand* right = UseOrConstantAtStart(instr->right()); | 1295 LOperand* right = UseOrConstantAtStart(instr->right()); |
1290 LSubI* sub = new(zone()) LSubI(left, right); | 1296 LSubI* sub = new(zone()) LSubI(left, right); |
1291 LInstruction* result = DefineSameAsFirst(sub); | 1297 LInstruction* result = DefineSameAsFirst(sub); |
1292 if (instr->CheckFlag(HValue::kCanOverflow)) { | 1298 if (instr->CheckFlag(HValue::kCanOverflow)) { |
1293 result = AssignEnvironment(result); | 1299 result = AssignEnvironment(result); |
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2259 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2265 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2260 LOperand* object = UseRegister(instr->object()); | 2266 LOperand* object = UseRegister(instr->object()); |
2261 LOperand* index = UseTempRegister(instr->index()); | 2267 LOperand* index = UseTempRegister(instr->index()); |
2262 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2268 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2263 } | 2269 } |
2264 | 2270 |
2265 | 2271 |
2266 } } // namespace v8::internal | 2272 } } // namespace v8::internal |
2267 | 2273 |
2268 #endif // V8_TARGET_ARCH_X64 | 2274 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |