| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1797 CodeStubInterfaceDescriptor* descriptor = | 1797 CodeStubInterfaceDescriptor* descriptor = |
| 1798 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); | 1798 info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
| 1799 int index = static_cast<int>(instr->index()); | 1799 int index = static_cast<int>(instr->index()); |
| 1800 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); | 1800 Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); |
| 1801 return DefineFixed(result, reg); | 1801 return DefineFixed(result, reg); |
| 1802 } | 1802 } |
| 1803 } | 1803 } |
| 1804 | 1804 |
| 1805 | 1805 |
| 1806 LInstruction* LChunkBuilder::DoPower(HPower* instr) { | 1806 LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
| 1807 UNIMPLEMENTED_INSTRUCTION(); | 1807 ASSERT(instr->representation().IsDouble()); |
| 1808 // We call a C function for double power. It can't trigger a GC. |
| 1809 // We need to use fixed result register for the call. |
| 1810 Representation exponent_type = instr->right()->representation(); |
| 1811 ASSERT(instr->left()->representation().IsDouble()); |
| 1812 LOperand* left = UseFixedDouble(instr->left(), d0); |
| 1813 LOperand* right = exponent_type.IsDouble() ? |
| 1814 UseFixedDouble(instr->right(), d1) : |
| 1815 UseFixed(instr->right(), x11); |
| 1816 LPower* result = new(zone()) LPower(left, right); |
| 1817 return MarkAsCall(DefineFixedDouble(result, d0), |
| 1818 instr, |
| 1819 CAN_DEOPTIMIZE_EAGERLY); |
| 1808 } | 1820 } |
| 1809 | 1821 |
| 1810 | 1822 |
| 1811 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { | 1823 LInstruction* LChunkBuilder::DoPushArgument(HPushArgument* instr) { |
| 1812 ++argument_count_; | 1824 ++argument_count_; |
| 1813 LOperand* argument = UseRegister(instr->argument()); | 1825 LOperand* argument = UseRegister(instr->argument()); |
| 1814 return new(zone()) LPushArgument(argument); | 1826 return new(zone()) LPushArgument(argument); |
| 1815 } | 1827 } |
| 1816 | 1828 |
| 1817 | 1829 |
| (...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2387 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2399 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2388 LOperand* receiver = UseRegister(instr->receiver()); | 2400 LOperand* receiver = UseRegister(instr->receiver()); |
| 2389 LOperand* function = UseRegisterAtStart(instr->function()); | 2401 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2390 LOperand* temp = TempRegister(); | 2402 LOperand* temp = TempRegister(); |
| 2391 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); | 2403 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); |
| 2392 return AssignEnvironment(DefineAsRegister(result)); | 2404 return AssignEnvironment(DefineAsRegister(result)); |
| 2393 } | 2405 } |
| 2394 | 2406 |
| 2395 | 2407 |
| 2396 } } // namespace v8::internal | 2408 } } // namespace v8::internal |
| OLD | NEW |