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 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 return DefineSameAsFirst(mul); | 1342 return DefineSameAsFirst(mul); |
1343 } else if (instr->representation().IsDouble()) { | 1343 } else if (instr->representation().IsDouble()) { |
1344 return DoArithmeticD(Token::MUL, instr); | 1344 return DoArithmeticD(Token::MUL, instr); |
1345 } else { | 1345 } else { |
1346 ASSERT(instr->representation().IsTagged()); | 1346 ASSERT(instr->representation().IsTagged()); |
1347 return DoArithmeticT(Token::MUL, instr); | 1347 return DoArithmeticT(Token::MUL, instr); |
1348 } | 1348 } |
1349 } | 1349 } |
1350 | 1350 |
1351 | 1351 |
| 1352 LInstruction* LChunkBuilder::DoMultiplyAdd(HMultiplyAdd* instr) { |
| 1353 UNIMPLEMENTED(); |
| 1354 return NULL; |
| 1355 } |
| 1356 |
| 1357 |
1352 LInstruction* LChunkBuilder::DoSub(HSub* instr) { | 1358 LInstruction* LChunkBuilder::DoSub(HSub* instr) { |
1353 if (instr->representation().IsInteger32()) { | 1359 if (instr->representation().IsInteger32()) { |
1354 ASSERT(instr->left()->representation().IsInteger32()); | 1360 ASSERT(instr->left()->representation().IsInteger32()); |
1355 ASSERT(instr->right()->representation().IsInteger32()); | 1361 ASSERT(instr->right()->representation().IsInteger32()); |
1356 LOperand* left = UseRegisterAtStart(instr->left()); | 1362 LOperand* left = UseRegisterAtStart(instr->left()); |
1357 LOperand* right = UseOrConstantAtStart(instr->right()); | 1363 LOperand* right = UseOrConstantAtStart(instr->right()); |
1358 LSubI* sub = new(zone()) LSubI(left, right); | 1364 LSubI* sub = new(zone()) LSubI(left, right); |
1359 LInstruction* result = DefineSameAsFirst(sub); | 1365 LInstruction* result = DefineSameAsFirst(sub); |
1360 if (instr->CheckFlag(HValue::kCanOverflow)) { | 1366 if (instr->CheckFlag(HValue::kCanOverflow)) { |
1361 result = AssignEnvironment(result); | 1367 result = AssignEnvironment(result); |
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2401 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2407 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2402 LOperand* object = UseRegister(instr->object()); | 2408 LOperand* object = UseRegister(instr->object()); |
2403 LOperand* index = UseTempRegister(instr->index()); | 2409 LOperand* index = UseTempRegister(instr->index()); |
2404 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2410 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2405 } | 2411 } |
2406 | 2412 |
2407 | 2413 |
2408 } } // namespace v8::internal | 2414 } } // namespace v8::internal |
2409 | 2415 |
2410 #endif // V8_TARGET_ARCH_IA32 | 2416 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |