OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1072 HInstanceOfKnownGlobal* instr) { | 1072 HInstanceOfKnownGlobal* instr) { |
1073 LInstanceOfKnownGlobal* result = | 1073 LInstanceOfKnownGlobal* result = |
1074 new(zone()) LInstanceOfKnownGlobal( | 1074 new(zone()) LInstanceOfKnownGlobal( |
1075 UseFixed(instr->context(), cp), | 1075 UseFixed(instr->context(), cp), |
1076 UseFixed(instr->left(), r0), | 1076 UseFixed(instr->left(), r0), |
1077 FixedTemp(r4)); | 1077 FixedTemp(r4)); |
1078 return MarkAsCall(DefineFixed(result, r0), instr); | 1078 return MarkAsCall(DefineFixed(result, r0), instr); |
1079 } | 1079 } |
1080 | 1080 |
1081 | 1081 |
1082 LInstruction* LChunkBuilder::DoInstanceSize(HInstanceSize* instr) { | |
1083 LOperand* object = UseRegisterAtStart(instr->object()); | |
1084 return DefineAsRegister(new(zone()) LInstanceSize(object)); | |
1085 } | |
1086 | |
1087 | |
1088 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 1082 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
1089 LOperand* receiver = UseRegisterAtStart(instr->receiver()); | 1083 LOperand* receiver = UseRegisterAtStart(instr->receiver()); |
1090 LOperand* function = UseRegisterAtStart(instr->function()); | 1084 LOperand* function = UseRegisterAtStart(instr->function()); |
1091 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 1085 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
1092 return AssignEnvironment(DefineSameAsFirst(result)); | 1086 return AssignEnvironment(DefineSameAsFirst(result)); |
1093 } | 1087 } |
1094 | 1088 |
1095 | 1089 |
1096 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1090 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
1097 LOperand* function = UseFixed(instr->function(), r1); | 1091 LOperand* function = UseFixed(instr->function(), r1); |
(...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2675 | 2669 |
2676 | 2670 |
2677 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2671 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2678 LOperand* object = UseRegister(instr->object()); | 2672 LOperand* object = UseRegister(instr->object()); |
2679 LOperand* index = UseRegister(instr->index()); | 2673 LOperand* index = UseRegister(instr->index()); |
2680 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2674 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2681 } | 2675 } |
2682 | 2676 |
2683 | 2677 |
2684 } } // namespace v8::internal | 2678 } } // namespace v8::internal |
OLD | NEW |