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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1182 LOperand* constructor = UseFixed(instr->constructor(), a1); | 1182 LOperand* constructor = UseFixed(instr->constructor(), a1); |
1183 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1183 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
1184 return MarkAsCall(DefineFixed(result, v0), instr); | 1184 return MarkAsCall(DefineFixed(result, v0), instr); |
1185 } | 1185 } |
1186 | 1186 |
1187 | 1187 |
1188 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1188 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
1189 LOperand* context = UseFixed(instr->context(), cp); | 1189 LOperand* context = UseFixed(instr->context(), cp); |
1190 LOperand* function = UseFixed(instr->function(), a1); | 1190 LOperand* function = UseFixed(instr->function(), a1); |
1191 LCallFunction* call = new(zone()) LCallFunction(context, function); | 1191 LCallFunction* call = new(zone()) LCallFunction(context, function); |
1192 LInstruction* result = DefineFixed(call, v0); | 1192 return MarkAsCall(DefineFixed(call, v0), instr); |
1193 if (instr->IsTailCall()) return result; | |
1194 return MarkAsCall(result, instr); | |
1195 } | 1193 } |
1196 | 1194 |
1197 | 1195 |
1198 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1196 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
1199 LOperand* context = UseFixed(instr->context(), cp); | 1197 LOperand* context = UseFixed(instr->context(), cp); |
1200 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), v0), instr); | 1198 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), v0), instr); |
1201 } | 1199 } |
1202 | 1200 |
1203 | 1201 |
1204 LInstruction* LChunkBuilder::DoRor(HRor* instr) { | 1202 LInstruction* LChunkBuilder::DoRor(HRor* instr) { |
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2398 | 2396 |
2399 | 2397 |
2400 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2398 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2401 LOperand* object = UseRegister(instr->object()); | 2399 LOperand* object = UseRegister(instr->object()); |
2402 LOperand* index = UseRegister(instr->index()); | 2400 LOperand* index = UseRegister(instr->index()); |
2403 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2401 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2404 } | 2402 } |
2405 | 2403 |
2406 | 2404 |
2407 } } // namespace v8::internal | 2405 } } // namespace v8::internal |
OLD | NEW |