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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 new(zone()) LInstanceOfKnownGlobal( | 1159 new(zone()) LInstanceOfKnownGlobal( |
1160 UseFixed(instr->context(), esi), | 1160 UseFixed(instr->context(), esi), |
1161 UseFixed(instr->left(), InstanceofStub::left()), | 1161 UseFixed(instr->left(), InstanceofStub::left()), |
1162 FixedTemp(edi)); | 1162 FixedTemp(edi)); |
1163 return MarkAsCall(DefineFixed(result, eax), instr); | 1163 return MarkAsCall(DefineFixed(result, eax), instr); |
1164 } | 1164 } |
1165 | 1165 |
1166 | 1166 |
1167 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 1167 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
1168 LOperand* receiver = UseRegister(instr->receiver()); | 1168 LOperand* receiver = UseRegister(instr->receiver()); |
1169 LOperand* function = UseRegisterAtStart(instr->function()); | 1169 LOperand* function = UseRegister(instr->function()); |
1170 LOperand* temp = TempRegister(); | 1170 LOperand* temp = TempRegister(); |
1171 LWrapReceiver* result = | 1171 LWrapReceiver* result = |
1172 new(zone()) LWrapReceiver(receiver, function, temp); | 1172 new(zone()) LWrapReceiver(receiver, function, temp); |
1173 return AssignEnvironment(DefineSameAsFirst(result)); | 1173 return AssignEnvironment(DefineSameAsFirst(result)); |
1174 } | 1174 } |
1175 | 1175 |
1176 | 1176 |
1177 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { | 1177 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { |
1178 LOperand* function = UseFixed(instr->function(), edi); | 1178 LOperand* function = UseFixed(instr->function(), edi); |
1179 LOperand* receiver = UseFixed(instr->receiver(), eax); | 1179 LOperand* receiver = UseFixed(instr->receiver(), eax); |
(...skipping 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2764 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2764 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2765 LOperand* object = UseRegister(instr->object()); | 2765 LOperand* object = UseRegister(instr->object()); |
2766 LOperand* index = UseTempRegister(instr->index()); | 2766 LOperand* index = UseTempRegister(instr->index()); |
2767 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2767 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2768 } | 2768 } |
2769 | 2769 |
2770 | 2770 |
2771 } } // namespace v8::internal | 2771 } } // namespace v8::internal |
2772 | 2772 |
2773 #endif // V8_TARGET_ARCH_IA32 | 2773 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |