| 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 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1219 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { | 1219 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { |
| 1220 LOperand* context = UseFixed(instr->context(), esi); | 1220 LOperand* context = UseFixed(instr->context(), esi); |
| 1221 LOperand* constructor = UseFixed(instr->constructor(), edi); | 1221 LOperand* constructor = UseFixed(instr->constructor(), edi); |
| 1222 argument_count_ -= instr->argument_count(); | 1222 argument_count_ -= instr->argument_count(); |
| 1223 LCallNew* result = new(zone()) LCallNew(context, constructor); | 1223 LCallNew* result = new(zone()) LCallNew(context, constructor); |
| 1224 return MarkAsCall(DefineFixed(result, eax), instr); | 1224 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1225 } | 1225 } |
| 1226 | 1226 |
| 1227 | 1227 |
| 1228 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { | 1228 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { |
| 1229 ASSERT(FLAG_optimize_constructed_arrays); |
| 1229 LOperand* context = UseFixed(instr->context(), esi); | 1230 LOperand* context = UseFixed(instr->context(), esi); |
| 1230 LOperand* constructor = UseFixed(instr->constructor(), edi); | 1231 LOperand* constructor = UseFixed(instr->constructor(), edi); |
| 1231 argument_count_ -= instr->argument_count(); | 1232 argument_count_ -= instr->argument_count(); |
| 1232 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1233 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
| 1233 return MarkAsCall(DefineFixed(result, eax), instr); | 1234 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1234 } | 1235 } |
| 1235 | 1236 |
| 1236 | 1237 |
| 1237 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1238 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
| 1238 LOperand* context = UseFixed(instr->context(), esi); | 1239 LOperand* context = UseFixed(instr->context(), esi); |
| (...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2585 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2586 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2586 LOperand* object = UseRegister(instr->object()); | 2587 LOperand* object = UseRegister(instr->object()); |
| 2587 LOperand* index = UseTempRegister(instr->index()); | 2588 LOperand* index = UseTempRegister(instr->index()); |
| 2588 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2589 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2589 } | 2590 } |
| 2590 | 2591 |
| 2591 | 2592 |
| 2592 } } // namespace v8::internal | 2593 } } // namespace v8::internal |
| 2593 | 2594 |
| 2594 #endif // V8_TARGET_ARCH_IA32 | 2595 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |