OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 LOperand* context = UseFixed(instr->context(), esi); | 1237 LOperand* context = UseFixed(instr->context(), esi); |
1238 LOperand* constructor = UseFixed(instr->constructor(), edi); | 1238 LOperand* constructor = UseFixed(instr->constructor(), edi); |
1239 argument_count_ -= instr->argument_count(); | 1239 argument_count_ -= instr->argument_count(); |
1240 LCallNew* result = new LCallNew(context, constructor); | 1240 LCallNew* result = new LCallNew(context, constructor); |
1241 return MarkAsCall(DefineFixed(result, eax), instr); | 1241 return MarkAsCall(DefineFixed(result, eax), instr); |
1242 } | 1242 } |
1243 | 1243 |
1244 | 1244 |
1245 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1245 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
1246 LOperand* context = UseFixed(instr->context(), esi); | 1246 LOperand* context = UseFixed(instr->context(), esi); |
| 1247 LOperand* function = UseFixed(instr->function(), edi); |
1247 argument_count_ -= instr->argument_count(); | 1248 argument_count_ -= instr->argument_count(); |
1248 LCallFunction* result = new LCallFunction(context); | 1249 LCallFunction* result = new LCallFunction(context, function); |
1249 return MarkAsCall(DefineFixed(result, eax), instr); | 1250 return MarkAsCall(DefineFixed(result, eax), instr); |
1250 } | 1251 } |
1251 | 1252 |
1252 | 1253 |
1253 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1254 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
1254 argument_count_ -= instr->argument_count(); | 1255 argument_count_ -= instr->argument_count(); |
1255 LOperand* context = UseFixed(instr->context(), esi); | 1256 LOperand* context = UseFixed(instr->context(), esi); |
1256 return MarkAsCall(DefineFixed(new LCallRuntime(context), eax), instr); | 1257 return MarkAsCall(DefineFixed(new LCallRuntime(context), eax), instr); |
1257 } | 1258 } |
1258 | 1259 |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2276 LOperand* key = UseOrConstantAtStart(instr->key()); | 2277 LOperand* key = UseOrConstantAtStart(instr->key()); |
2277 LOperand* object = UseOrConstantAtStart(instr->object()); | 2278 LOperand* object = UseOrConstantAtStart(instr->object()); |
2278 LIn* result = new LIn(context, key, object); | 2279 LIn* result = new LIn(context, key, object); |
2279 return MarkAsCall(DefineFixed(result, eax), instr); | 2280 return MarkAsCall(DefineFixed(result, eax), instr); |
2280 } | 2281 } |
2281 | 2282 |
2282 | 2283 |
2283 } } // namespace v8::internal | 2284 } } // namespace v8::internal |
2284 | 2285 |
2285 #endif // V8_TARGET_ARCH_IA32 | 2286 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |