OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 } | 1439 } |
1440 } | 1440 } |
1441 | 1441 |
1442 | 1442 |
1443 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 1443 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
1444 ASSERT(instr->representation().IsDouble()); | 1444 ASSERT(instr->representation().IsDouble()); |
1445 // We call a C function for double power. It can't trigger a GC. | 1445 // We call a C function for double power. It can't trigger a GC. |
1446 // We need to use fixed result register for the call. | 1446 // We need to use fixed result register for the call. |
1447 Representation exponent_type = instr->right()->representation(); | 1447 Representation exponent_type = instr->right()->representation(); |
1448 ASSERT(instr->left()->representation().IsDouble()); | 1448 ASSERT(instr->left()->representation().IsDouble()); |
1449 LOperand* left = UseFixedDouble(instr->left(), xmm1); | 1449 LOperand* left = UseFixedDouble(instr->left(), xmm2); |
1450 LOperand* right = exponent_type.IsDouble() ? | 1450 LOperand* right = exponent_type.IsDouble() ? |
1451 UseFixedDouble(instr->right(), xmm2) : | 1451 UseFixedDouble(instr->right(), xmm1) : |
1452 UseFixed(instr->right(), eax); | 1452 UseFixed(instr->right(), eax); |
1453 LPower* result = new(zone()) LPower(left, right); | 1453 LPower* result = new(zone()) LPower(left, right); |
1454 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, | 1454 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, |
1455 CAN_DEOPTIMIZE_EAGERLY); | 1455 CAN_DEOPTIMIZE_EAGERLY); |
1456 } | 1456 } |
1457 | 1457 |
1458 | 1458 |
1459 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1459 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
1460 ASSERT(instr->left()->representation().IsTagged()); | 1460 ASSERT(instr->left()->representation().IsTagged()); |
1461 ASSERT(instr->right()->representation().IsTagged()); | 1461 ASSERT(instr->right()->representation().IsTagged()); |
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2374 LOperand* key = UseOrConstantAtStart(instr->key()); | 2374 LOperand* key = UseOrConstantAtStart(instr->key()); |
2375 LOperand* object = UseOrConstantAtStart(instr->object()); | 2375 LOperand* object = UseOrConstantAtStart(instr->object()); |
2376 LIn* result = new(zone()) LIn(context, key, object); | 2376 LIn* result = new(zone()) LIn(context, key, object); |
2377 return MarkAsCall(DefineFixed(result, eax), instr); | 2377 return MarkAsCall(DefineFixed(result, eax), instr); |
2378 } | 2378 } |
2379 | 2379 |
2380 | 2380 |
2381 } } // namespace v8::internal | 2381 } } // namespace v8::internal |
2382 | 2382 |
2383 #endif // V8_TARGET_ARCH_IA32 | 2383 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |