OLD | NEW |
1 // Copyright 2011 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1462 LOperand* left = UseFixedDouble(instr->left(), xmm2); | 1462 LOperand* left = UseFixedDouble(instr->left(), xmm2); |
1463 LOperand* right = exponent_type.IsDouble() ? | 1463 LOperand* right = exponent_type.IsDouble() ? |
1464 UseFixedDouble(instr->right(), xmm1) : | 1464 UseFixedDouble(instr->right(), xmm1) : |
1465 UseFixed(instr->right(), eax); | 1465 UseFixed(instr->right(), eax); |
1466 LPower* result = new(zone()) LPower(left, right); | 1466 LPower* result = new(zone()) LPower(left, right); |
1467 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, | 1467 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, |
1468 CAN_DEOPTIMIZE_EAGERLY); | 1468 CAN_DEOPTIMIZE_EAGERLY); |
1469 } | 1469 } |
1470 | 1470 |
1471 | 1471 |
| 1472 LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { |
| 1473 ASSERT(instr->representation().IsDouble()); |
| 1474 ASSERT(instr->global_object()->representation().IsTagged()); |
| 1475 LOperand* global_object = UseFixed(instr->global_object(), eax); |
| 1476 LRandom* result = new(zone()) LRandom(global_object); |
| 1477 return MarkAsCall(DefineFixedDouble(result, xmm1), instr); |
| 1478 } |
| 1479 |
| 1480 |
1472 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1481 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
1473 ASSERT(instr->left()->representation().IsTagged()); | 1482 ASSERT(instr->left()->representation().IsTagged()); |
1474 ASSERT(instr->right()->representation().IsTagged()); | 1483 ASSERT(instr->right()->representation().IsTagged()); |
1475 LOperand* context = UseFixed(instr->context(), esi); | 1484 LOperand* context = UseFixed(instr->context(), esi); |
1476 LOperand* left = UseFixed(instr->left(), edx); | 1485 LOperand* left = UseFixed(instr->left(), edx); |
1477 LOperand* right = UseFixed(instr->right(), eax); | 1486 LOperand* right = UseFixed(instr->right(), eax); |
1478 LCmpT* result = new(zone()) LCmpT(context, left, right); | 1487 LCmpT* result = new(zone()) LCmpT(context, left, right); |
1479 return MarkAsCall(DefineFixed(result, eax), instr); | 1488 return MarkAsCall(DefineFixed(result, eax), instr); |
1480 } | 1489 } |
1481 | 1490 |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2388 LOperand* key = UseOrConstantAtStart(instr->key()); | 2397 LOperand* key = UseOrConstantAtStart(instr->key()); |
2389 LOperand* object = UseOrConstantAtStart(instr->object()); | 2398 LOperand* object = UseOrConstantAtStart(instr->object()); |
2390 LIn* result = new(zone()) LIn(context, key, object); | 2399 LIn* result = new(zone()) LIn(context, key, object); |
2391 return MarkAsCall(DefineFixed(result, eax), instr); | 2400 return MarkAsCall(DefineFixed(result, eax), instr); |
2392 } | 2401 } |
2393 | 2402 |
2394 | 2403 |
2395 } } // namespace v8::internal | 2404 } } // namespace v8::internal |
2396 | 2405 |
2397 #endif // V8_TARGET_ARCH_IA32 | 2406 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |