| 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 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 LOperand* constructor = UseFixed(instr->constructor(), rdi); | 1178 LOperand* constructor = UseFixed(instr->constructor(), rdi); |
| 1179 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1179 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
| 1180 return MarkAsCall(DefineFixed(result, rax), instr); | 1180 return MarkAsCall(DefineFixed(result, rax), instr); |
| 1181 } | 1181 } |
| 1182 | 1182 |
| 1183 | 1183 |
| 1184 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1184 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
| 1185 LOperand* context = UseFixed(instr->context(), rsi); | 1185 LOperand* context = UseFixed(instr->context(), rsi); |
| 1186 LOperand* function = UseFixed(instr->function(), rdi); | 1186 LOperand* function = UseFixed(instr->function(), rdi); |
| 1187 LCallFunction* call = new(zone()) LCallFunction(context, function); | 1187 LCallFunction* call = new(zone()) LCallFunction(context, function); |
| 1188 LInstruction* result = DefineFixed(call, rax); | 1188 return MarkAsCall(DefineFixed(call, rax), instr); |
| 1189 if (instr->IsTailCall()) return result; | |
| 1190 return MarkAsCall(result, instr); | |
| 1191 } | 1189 } |
| 1192 | 1190 |
| 1193 | 1191 |
| 1194 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1192 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
| 1195 LOperand* context = UseFixed(instr->context(), rsi); | 1193 LOperand* context = UseFixed(instr->context(), rsi); |
| 1196 LCallRuntime* result = new(zone()) LCallRuntime(context); | 1194 LCallRuntime* result = new(zone()) LCallRuntime(context); |
| 1197 return MarkAsCall(DefineFixed(result, rax), instr); | 1195 return MarkAsCall(DefineFixed(result, rax), instr); |
| 1198 } | 1196 } |
| 1199 | 1197 |
| 1200 | 1198 |
| (...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2427 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2425 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2428 LOperand* object = UseRegister(instr->object()); | 2426 LOperand* object = UseRegister(instr->object()); |
| 2429 LOperand* index = UseTempRegister(instr->index()); | 2427 LOperand* index = UseTempRegister(instr->index()); |
| 2430 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2428 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2431 } | 2429 } |
| 2432 | 2430 |
| 2433 | 2431 |
| 2434 } } // namespace v8::internal | 2432 } } // namespace v8::internal |
| 2435 | 2433 |
| 2436 #endif // V8_TARGET_ARCH_X64 | 2434 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |