| 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 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1176 LOperand* constructor = UseFixed(instr->constructor(), r1); | 1176 LOperand* constructor = UseFixed(instr->constructor(), r1); |
| 1177 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1177 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
| 1178 return MarkAsCall(DefineFixed(result, r0), instr); | 1178 return MarkAsCall(DefineFixed(result, r0), instr); |
| 1179 } | 1179 } |
| 1180 | 1180 |
| 1181 | 1181 |
| 1182 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1182 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
| 1183 LOperand* context = UseFixed(instr->context(), cp); | 1183 LOperand* context = UseFixed(instr->context(), cp); |
| 1184 LOperand* function = UseFixed(instr->function(), r1); | 1184 LOperand* function = UseFixed(instr->function(), r1); |
| 1185 LCallFunction* call = new(zone()) LCallFunction(context, function); | 1185 LCallFunction* call = new(zone()) LCallFunction(context, function); |
| 1186 LInstruction* result = DefineFixed(call, r0); | 1186 return MarkAsCall(DefineFixed(call, r0), instr); |
| 1187 if (instr->IsTailCall()) return result; | |
| 1188 return MarkAsCall(result, instr); | |
| 1189 } | 1187 } |
| 1190 | 1188 |
| 1191 | 1189 |
| 1192 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1190 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
| 1193 LOperand* context = UseFixed(instr->context(), cp); | 1191 LOperand* context = UseFixed(instr->context(), cp); |
| 1194 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), r0), instr); | 1192 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), r0), instr); |
| 1195 } | 1193 } |
| 1196 | 1194 |
| 1197 | 1195 |
| 1198 LInstruction* LChunkBuilder::DoRor(HRor* instr) { | 1196 LInstruction* LChunkBuilder::DoRor(HRor* instr) { |
| (...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2468 } | 2466 } |
| 2469 | 2467 |
| 2470 | 2468 |
| 2471 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2469 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2472 LOperand* object = UseRegister(instr->object()); | 2470 LOperand* object = UseRegister(instr->object()); |
| 2473 LOperand* index = UseRegister(instr->index()); | 2471 LOperand* index = UseRegister(instr->index()); |
| 2474 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2472 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2475 } | 2473 } |
| 2476 | 2474 |
| 2477 } } // namespace v8::internal | 2475 } } // namespace v8::internal |
| OLD | NEW |