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 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1141 } else { | 1141 } else { |
1142 // Test the non-zero operand for negative sign. | 1142 // Test the non-zero operand for negative sign. |
1143 __ orl(kScratchRegister, ToRegister(right)); | 1143 __ orl(kScratchRegister, ToRegister(right)); |
1144 DeoptimizeIf(sign, instr->environment()); | 1144 DeoptimizeIf(sign, instr->environment()); |
1145 } | 1145 } |
1146 __ bind(&done); | 1146 __ bind(&done); |
1147 } | 1147 } |
1148 } | 1148 } |
1149 | 1149 |
1150 | 1150 |
| 1151 void LCodeGen::DoMultiplyAddD(LMultiplyAddD* instr) { |
| 1152 XMMRegister a = ToDoubleRegister(instr->a()); |
| 1153 XMMRegister b = ToDoubleRegister(instr->b()); |
| 1154 XMMRegister c = ToDoubleRegister(instr->c()); |
| 1155 |
| 1156 // This is computed in-place. |
| 1157 ASSERT(a.is(ToDoubleRegister(instr->result()))); |
| 1158 |
| 1159 __ mulsd(a, b); |
| 1160 __ addsd(a, c); |
| 1161 } |
| 1162 |
| 1163 |
1151 void LCodeGen::DoBitI(LBitI* instr) { | 1164 void LCodeGen::DoBitI(LBitI* instr) { |
1152 LOperand* left = instr->left(); | 1165 LOperand* left = instr->left(); |
1153 LOperand* right = instr->right(); | 1166 LOperand* right = instr->right(); |
1154 ASSERT(left->Equals(instr->result())); | 1167 ASSERT(left->Equals(instr->result())); |
1155 ASSERT(left->IsRegister()); | 1168 ASSERT(left->IsRegister()); |
1156 | 1169 |
1157 if (right->IsConstantOperand()) { | 1170 if (right->IsConstantOperand()) { |
1158 int right_operand = ToInteger32(LConstantOperand::cast(right)); | 1171 int right_operand = ToInteger32(LConstantOperand::cast(right)); |
1159 switch (instr->op()) { | 1172 switch (instr->op()) { |
1160 case Token::BIT_AND: | 1173 case Token::BIT_AND: |
(...skipping 4122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5283 FixedArray::kHeaderSize - kPointerSize)); | 5296 FixedArray::kHeaderSize - kPointerSize)); |
5284 __ bind(&done); | 5297 __ bind(&done); |
5285 } | 5298 } |
5286 | 5299 |
5287 | 5300 |
5288 #undef __ | 5301 #undef __ |
5289 | 5302 |
5290 } } // namespace v8::internal | 5303 } } // namespace v8::internal |
5291 | 5304 |
5292 #endif // V8_TARGET_ARCH_X64 | 5305 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |