| 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 } | 860 } |
| 861 } | 861 } |
| 862 | 862 |
| 863 | 863 |
| 864 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 864 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 865 info()->MarkAsDeferredCalling(); | 865 info()->MarkAsDeferredCalling(); |
| 866 LOperand* context = UseAny(instr->context()); | 866 LOperand* context = UseAny(instr->context()); |
| 867 LOperand* size = UseRegisterOrConstant(instr->size()); | 867 LOperand* size = UseRegisterOrConstant(instr->size()); |
| 868 LOperand* temp1 = TempRegister(); | 868 LOperand* temp1 = TempRegister(); |
| 869 LOperand* temp2 = TempRegister(); | 869 LOperand* temp2 = TempRegister(); |
| 870 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2); | 870 LOperand* temp3 = instr->MustPrefillWithFiller() ? TempRegister() : NULL; |
| 871 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2, temp3); |
| 871 return AssignPointerMap(DefineAsRegister(result)); | 872 return AssignPointerMap(DefineAsRegister(result)); |
| 872 } | 873 } |
| 873 | 874 |
| 874 | 875 |
| 875 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 876 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
| 876 LOperand* function = UseFixed(instr->function(), x1); | 877 LOperand* function = UseFixed(instr->function(), x1); |
| 877 LOperand* receiver = UseFixed(instr->receiver(), x0); | 878 LOperand* receiver = UseFixed(instr->receiver(), x0); |
| 878 LOperand* length = UseFixed(instr->length(), x2); | 879 LOperand* length = UseFixed(instr->length(), x2); |
| 879 LOperand* elements = UseFixed(instr->elements(), x3); | 880 LOperand* elements = UseFixed(instr->elements(), x3); |
| 880 LApplyArguments* result = new(zone()) LApplyArguments(function, | 881 LApplyArguments* result = new(zone()) LApplyArguments(function, |
| (...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2568 | 2569 |
| 2569 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2570 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2570 LOperand* receiver = UseRegister(instr->receiver()); | 2571 LOperand* receiver = UseRegister(instr->receiver()); |
| 2571 LOperand* function = UseRegister(instr->function()); | 2572 LOperand* function = UseRegister(instr->function()); |
| 2572 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2573 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 2573 return AssignEnvironment(DefineAsRegister(result)); | 2574 return AssignEnvironment(DefineAsRegister(result)); |
| 2574 } | 2575 } |
| 2575 | 2576 |
| 2576 | 2577 |
| 2577 } } // namespace v8::internal | 2578 } } // namespace v8::internal |
| OLD | NEW |