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 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1140 HInstanceOfKnownGlobal* instr) { | 1140 HInstanceOfKnownGlobal* instr) { |
1141 LInstanceOfKnownGlobal* result = | 1141 LInstanceOfKnownGlobal* result = |
1142 new(zone()) LInstanceOfKnownGlobal( | 1142 new(zone()) LInstanceOfKnownGlobal( |
1143 UseFixed(instr->context(), esi), | 1143 UseFixed(instr->context(), esi), |
1144 UseFixed(instr->left(), InstanceofStub::left()), | 1144 UseFixed(instr->left(), InstanceofStub::left()), |
1145 FixedTemp(edi)); | 1145 FixedTemp(edi)); |
1146 return MarkAsCall(DefineFixed(result, eax), instr); | 1146 return MarkAsCall(DefineFixed(result, eax), instr); |
1147 } | 1147 } |
1148 | 1148 |
1149 | 1149 |
1150 LInstruction* LChunkBuilder::DoInstanceSize(HInstanceSize* instr) { | |
1151 LOperand* object = UseRegisterAtStart(instr->object()); | |
1152 return DefineAsRegister(new(zone()) LInstanceSize(object)); | |
1153 } | |
1154 | |
1155 | |
1156 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 1150 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
1157 LOperand* receiver = UseRegister(instr->receiver()); | 1151 LOperand* receiver = UseRegister(instr->receiver()); |
1158 LOperand* function = UseRegisterAtStart(instr->function()); | 1152 LOperand* function = UseRegisterAtStart(instr->function()); |
1159 LOperand* temp = TempRegister(); | 1153 LOperand* temp = TempRegister(); |
1160 LWrapReceiver* result = | 1154 LWrapReceiver* result = |
1161 new(zone()) LWrapReceiver(receiver, function, temp); | 1155 new(zone()) LWrapReceiver(receiver, function, temp); |
1162 return AssignEnvironment(DefineSameAsFirst(result)); | 1156 return AssignEnvironment(DefineSameAsFirst(result)); |
1163 } | 1157 } |
1164 | 1158 |
1165 | 1159 |
(...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2741 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2735 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2742 LOperand* object = UseRegister(instr->object()); | 2736 LOperand* object = UseRegister(instr->object()); |
2743 LOperand* index = UseTempRegister(instr->index()); | 2737 LOperand* index = UseTempRegister(instr->index()); |
2744 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2738 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2745 } | 2739 } |
2746 | 2740 |
2747 | 2741 |
2748 } } // namespace v8::internal | 2742 } } // namespace v8::internal |
2749 | 2743 |
2750 #endif // V8_TARGET_ARCH_IA32 | 2744 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |