| 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 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 LOperand* constructor = UseFixed(instr->constructor(), edi); | 1258 LOperand* constructor = UseFixed(instr->constructor(), edi); |
| 1259 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1259 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
| 1260 return MarkAsCall(DefineFixed(result, eax), instr); | 1260 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1261 } | 1261 } |
| 1262 | 1262 |
| 1263 | 1263 |
| 1264 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1264 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
| 1265 LOperand* context = UseFixed(instr->context(), esi); | 1265 LOperand* context = UseFixed(instr->context(), esi); |
| 1266 LOperand* function = UseFixed(instr->function(), edi); | 1266 LOperand* function = UseFixed(instr->function(), edi); |
| 1267 LCallFunction* call = new(zone()) LCallFunction(context, function); | 1267 LCallFunction* call = new(zone()) LCallFunction(context, function); |
| 1268 LInstruction* result = DefineFixed(call, eax); | 1268 return MarkAsCall(DefineFixed(call, eax), instr); |
| 1269 if (instr->IsTailCall()) return result; | |
| 1270 return MarkAsCall(result, instr); | |
| 1271 } | 1269 } |
| 1272 | 1270 |
| 1273 | 1271 |
| 1274 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1272 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
| 1275 LOperand* context = UseFixed(instr->context(), esi); | 1273 LOperand* context = UseFixed(instr->context(), esi); |
| 1276 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), eax), instr); | 1274 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), eax), instr); |
| 1277 } | 1275 } |
| 1278 | 1276 |
| 1279 | 1277 |
| 1280 LInstruction* LChunkBuilder::DoRor(HRor* instr) { | 1278 LInstruction* LChunkBuilder::DoRor(HRor* instr) { |
| (...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2581 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2579 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2582 LOperand* object = UseRegister(instr->object()); | 2580 LOperand* object = UseRegister(instr->object()); |
| 2583 LOperand* index = UseTempRegister(instr->index()); | 2581 LOperand* index = UseTempRegister(instr->index()); |
| 2584 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2582 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2585 } | 2583 } |
| 2586 | 2584 |
| 2587 | 2585 |
| 2588 } } // namespace v8::internal | 2586 } } // namespace v8::internal |
| 2589 | 2587 |
| 2590 #endif // V8_TARGET_ARCH_IA32 | 2588 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |