| 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 2492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2503 return AssignPointerMap(DefineAsRegister(result)); | 2503 return AssignPointerMap(DefineAsRegister(result)); |
| 2504 } | 2504 } |
| 2505 | 2505 |
| 2506 | 2506 |
| 2507 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 2507 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { |
| 2508 LOperand* string = UseRegisterAtStart(instr->value()); | 2508 LOperand* string = UseRegisterAtStart(instr->value()); |
| 2509 return DefineAsRegister(new(zone()) LStringLength(string)); | 2509 return DefineAsRegister(new(zone()) LStringLength(string)); |
| 2510 } | 2510 } |
| 2511 | 2511 |
| 2512 | 2512 |
| 2513 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) { | |
| 2514 info()->MarkAsDeferredCalling(); | |
| 2515 LOperand* context = UseAny(instr->context()); | |
| 2516 LOperand* temp = TempRegister(); | |
| 2517 LAllocateObject* result = new(zone()) LAllocateObject(context, temp); | |
| 2518 return AssignPointerMap(DefineAsRegister(result)); | |
| 2519 } | |
| 2520 | |
| 2521 | |
| 2522 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 2513 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 2523 info()->MarkAsDeferredCalling(); | 2514 info()->MarkAsDeferredCalling(); |
| 2524 LOperand* context = UseAny(instr->context()); | 2515 LOperand* context = UseAny(instr->context()); |
| 2525 LOperand* size = instr->size()->IsConstant() | 2516 LOperand* size = instr->size()->IsConstant() |
| 2526 ? UseConstant(instr->size()) | 2517 ? UseConstant(instr->size()) |
| 2527 : UseTempRegister(instr->size()); | 2518 : UseTempRegister(instr->size()); |
| 2528 LOperand* temp = TempRegister(); | 2519 LOperand* temp = TempRegister(); |
| 2529 LAllocate* result = new(zone()) LAllocate(context, size, temp); | 2520 LAllocate* result = new(zone()) LAllocate(context, size, temp); |
| 2530 return AssignPointerMap(DefineAsRegister(result)); | 2521 return AssignPointerMap(DefineAsRegister(result)); |
| 2531 } | 2522 } |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2750 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2741 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2751 LOperand* object = UseRegister(instr->object()); | 2742 LOperand* object = UseRegister(instr->object()); |
| 2752 LOperand* index = UseTempRegister(instr->index()); | 2743 LOperand* index = UseTempRegister(instr->index()); |
| 2753 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2744 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2754 } | 2745 } |
| 2755 | 2746 |
| 2756 | 2747 |
| 2757 } } // namespace v8::internal | 2748 } } // namespace v8::internal |
| 2758 | 2749 |
| 2759 #endif // V8_TARGET_ARCH_IA32 | 2750 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |