| 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 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2381 return AssignPointerMap(DefineAsRegister(result)); | 2381 return AssignPointerMap(DefineAsRegister(result)); |
| 2382 } | 2382 } |
| 2383 | 2383 |
| 2384 | 2384 |
| 2385 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 2385 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { |
| 2386 LOperand* string = UseRegisterAtStart(instr->value()); | 2386 LOperand* string = UseRegisterAtStart(instr->value()); |
| 2387 return DefineAsRegister(new(zone()) LStringLength(string)); | 2387 return DefineAsRegister(new(zone()) LStringLength(string)); |
| 2388 } | 2388 } |
| 2389 | 2389 |
| 2390 | 2390 |
| 2391 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) { | |
| 2392 info()->MarkAsDeferredCalling(); | |
| 2393 LAllocateObject* result = | |
| 2394 new(zone()) LAllocateObject(TempRegister(), TempRegister()); | |
| 2395 return AssignPointerMap(DefineAsRegister(result)); | |
| 2396 } | |
| 2397 | |
| 2398 | |
| 2399 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 2391 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 2400 info()->MarkAsDeferredCalling(); | 2392 info()->MarkAsDeferredCalling(); |
| 2401 LOperand* size = instr->size()->IsConstant() | 2393 LOperand* size = instr->size()->IsConstant() |
| 2402 ? UseConstant(instr->size()) | 2394 ? UseConstant(instr->size()) |
| 2403 : UseTempRegister(instr->size()); | 2395 : UseTempRegister(instr->size()); |
| 2404 LOperand* temp1 = TempRegister(); | 2396 LOperand* temp1 = TempRegister(); |
| 2405 LOperand* temp2 = TempRegister(); | 2397 LOperand* temp2 = TempRegister(); |
| 2406 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); | 2398 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); |
| 2407 return AssignPointerMap(DefineAsRegister(result)); | 2399 return AssignPointerMap(DefineAsRegister(result)); |
| 2408 } | 2400 } |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2626 | 2618 |
| 2627 | 2619 |
| 2628 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2620 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2629 LOperand* object = UseRegister(instr->object()); | 2621 LOperand* object = UseRegister(instr->object()); |
| 2630 LOperand* index = UseRegister(instr->index()); | 2622 LOperand* index = UseRegister(instr->index()); |
| 2631 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2623 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2632 } | 2624 } |
| 2633 | 2625 |
| 2634 | 2626 |
| 2635 } } // namespace v8::internal | 2627 } } // namespace v8::internal |
| OLD | NEW |