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 1379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 ASSERT(instr->left()->representation().IsDouble()); | 1390 ASSERT(instr->left()->representation().IsDouble()); |
1391 LOperand* left = UseFixedDouble(instr->left(), xmm2); | 1391 LOperand* left = UseFixedDouble(instr->left(), xmm2); |
1392 LOperand* right = exponent_type.IsDouble() ? | 1392 LOperand* right = exponent_type.IsDouble() ? |
1393 UseFixedDouble(instr->right(), xmm1) : | 1393 UseFixedDouble(instr->right(), xmm1) : |
1394 #ifdef _WIN64 | 1394 #ifdef _WIN64 |
1395 UseFixed(instr->right(), rdx); | 1395 UseFixed(instr->right(), rdx); |
1396 #else | 1396 #else |
1397 UseFixed(instr->right(), rdi); | 1397 UseFixed(instr->right(), rdi); |
1398 #endif | 1398 #endif |
1399 LPower* result = new LPower(left, right); | 1399 LPower* result = new LPower(left, right); |
1400 return MarkAsCall(DefineFixedDouble(result, xmm1), instr, | 1400 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, |
1401 CAN_DEOPTIMIZE_EAGERLY); | 1401 CAN_DEOPTIMIZE_EAGERLY); |
1402 } | 1402 } |
1403 | 1403 |
1404 | 1404 |
1405 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1405 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
1406 ASSERT(instr->left()->representation().IsTagged()); | 1406 ASSERT(instr->left()->representation().IsTagged()); |
1407 ASSERT(instr->right()->representation().IsTagged()); | 1407 ASSERT(instr->right()->representation().IsTagged()); |
1408 LOperand* left = UseFixed(instr->left(), rdx); | 1408 LOperand* left = UseFixed(instr->left(), rdx); |
1409 LOperand* right = UseFixed(instr->right(), rax); | 1409 LOperand* right = UseFixed(instr->right(), rax); |
1410 LCmpT* result = new LCmpT(left, right); | 1410 LCmpT* result = new LCmpT(left, right); |
(...skipping 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2236 LOperand* key = UseOrConstantAtStart(instr->key()); | 2236 LOperand* key = UseOrConstantAtStart(instr->key()); |
2237 LOperand* object = UseOrConstantAtStart(instr->object()); | 2237 LOperand* object = UseOrConstantAtStart(instr->object()); |
2238 LIn* result = new LIn(key, object); | 2238 LIn* result = new LIn(key, object); |
2239 return MarkAsCall(DefineFixed(result, rax), instr); | 2239 return MarkAsCall(DefineFixed(result, rax), instr); |
2240 } | 2240 } |
2241 | 2241 |
2242 | 2242 |
2243 } } // namespace v8::internal | 2243 } } // namespace v8::internal |
2244 | 2244 |
2245 #endif // V8_TARGET_ARCH_X64 | 2245 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |