| 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 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1398 | 1398 |
| 1399 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 1399 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
| 1400 ASSERT(instr->representation().IsDouble()); | 1400 ASSERT(instr->representation().IsDouble()); |
| 1401 // We call a C function for double power. It can't trigger a GC. | 1401 // We call a C function for double power. It can't trigger a GC. |
| 1402 // We need to use fixed result register for the call. | 1402 // We need to use fixed result register for the call. |
| 1403 Representation exponent_type = instr->right()->representation(); | 1403 Representation exponent_type = instr->right()->representation(); |
| 1404 ASSERT(instr->left()->representation().IsDouble()); | 1404 ASSERT(instr->left()->representation().IsDouble()); |
| 1405 LOperand* left = UseFixedDouble(instr->left(), d1); | 1405 LOperand* left = UseFixedDouble(instr->left(), d1); |
| 1406 LOperand* right = exponent_type.IsDouble() ? | 1406 LOperand* right = exponent_type.IsDouble() ? |
| 1407 UseFixedDouble(instr->right(), d2) : | 1407 UseFixedDouble(instr->right(), d2) : |
| 1408 UseFixed(instr->right(), r0); | 1408 UseFixed(instr->right(), r2); |
| 1409 LPower* result = new LPower(left, right); | 1409 LPower* result = new LPower(left, right); |
| 1410 return MarkAsCall(DefineFixedDouble(result, d3), | 1410 return MarkAsCall(DefineFixedDouble(result, d3), |
| 1411 instr, | 1411 instr, |
| 1412 CAN_DEOPTIMIZE_EAGERLY); | 1412 CAN_DEOPTIMIZE_EAGERLY); |
| 1413 } | 1413 } |
| 1414 | 1414 |
| 1415 | 1415 |
| 1416 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { | 1416 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
| 1417 ASSERT(instr->left()->representation().IsTagged()); | 1417 ASSERT(instr->left()->representation().IsTagged()); |
| 1418 ASSERT(instr->right()->representation().IsTagged()); | 1418 ASSERT(instr->right()->representation().IsTagged()); |
| (...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2236 | 2236 |
| 2237 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2237 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
| 2238 LOperand* key = UseRegisterAtStart(instr->key()); | 2238 LOperand* key = UseRegisterAtStart(instr->key()); |
| 2239 LOperand* object = UseRegisterAtStart(instr->object()); | 2239 LOperand* object = UseRegisterAtStart(instr->object()); |
| 2240 LIn* result = new LIn(key, object); | 2240 LIn* result = new LIn(key, object); |
| 2241 return MarkAsCall(DefineFixed(result, r0), instr); | 2241 return MarkAsCall(DefineFixed(result, r0), instr); |
| 2242 } | 2242 } |
| 2243 | 2243 |
| 2244 | 2244 |
| 2245 } } // namespace v8::internal | 2245 } } // namespace v8::internal |
| OLD | NEW |