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 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 } | 871 } |
872 } | 872 } |
873 | 873 |
874 | 874 |
875 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 875 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
876 info()->MarkAsDeferredCalling(); | 876 info()->MarkAsDeferredCalling(); |
877 LOperand* context = UseAny(instr->context()); | 877 LOperand* context = UseAny(instr->context()); |
878 LOperand* size = UseRegisterOrConstant(instr->size()); | 878 LOperand* size = UseRegisterOrConstant(instr->size()); |
879 LOperand* temp1 = TempRegister(); | 879 LOperand* temp1 = TempRegister(); |
880 LOperand* temp2 = TempRegister(); | 880 LOperand* temp2 = TempRegister(); |
881 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2); | 881 LOperand* temp3 = instr->MustPrefillWithFiller() ? TempRegister() : NULL; |
| 882 LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2, temp3); |
882 return AssignPointerMap(DefineAsRegister(result)); | 883 return AssignPointerMap(DefineAsRegister(result)); |
883 } | 884 } |
884 | 885 |
885 | 886 |
886 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 887 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
887 LOperand* function = UseFixed(instr->function(), x1); | 888 LOperand* function = UseFixed(instr->function(), x1); |
888 LOperand* receiver = UseFixed(instr->receiver(), x0); | 889 LOperand* receiver = UseFixed(instr->receiver(), x0); |
889 LOperand* length = UseFixed(instr->length(), x2); | 890 LOperand* length = UseFixed(instr->length(), x2); |
890 LOperand* elements = UseFixed(instr->elements(), x3); | 891 LOperand* elements = UseFixed(instr->elements(), x3); |
891 LApplyArguments* result = new(zone()) LApplyArguments(function, | 892 LApplyArguments* result = new(zone()) LApplyArguments(function, |
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2564 | 2565 |
2565 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2566 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
2566 LOperand* receiver = UseRegister(instr->receiver()); | 2567 LOperand* receiver = UseRegister(instr->receiver()); |
2567 LOperand* function = UseRegister(instr->function()); | 2568 LOperand* function = UseRegister(instr->function()); |
2568 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2569 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
2569 return AssignEnvironment(DefineAsRegister(result)); | 2570 return AssignEnvironment(DefineAsRegister(result)); |
2570 } | 2571 } |
2571 | 2572 |
2572 | 2573 |
2573 } } // namespace v8::internal | 2574 } } // namespace v8::internal |
OLD | NEW |