| 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 2320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2331 return AssignPointerMap(DefineAsRegister(result)); | 2331 return AssignPointerMap(DefineAsRegister(result)); |
| 2332 } | 2332 } |
| 2333 | 2333 |
| 2334 | 2334 |
| 2335 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 2335 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { |
| 2336 LOperand* string = UseRegisterAtStart(instr->value()); | 2336 LOperand* string = UseRegisterAtStart(instr->value()); |
| 2337 return DefineAsRegister(new(zone()) LStringLength(string)); | 2337 return DefineAsRegister(new(zone()) LStringLength(string)); |
| 2338 } | 2338 } |
| 2339 | 2339 |
| 2340 | 2340 |
| 2341 LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) { |
| 2342 info()->MarkAsDeferredCalling(); |
| 2343 LAllocateObject* result = |
| 2344 new(zone()) LAllocateObject(TempRegister(), TempRegister()); |
| 2345 return AssignPointerMap(DefineAsRegister(result)); |
| 2346 } |
| 2347 |
| 2348 |
| 2341 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 2349 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 2342 info()->MarkAsDeferredCalling(); | 2350 info()->MarkAsDeferredCalling(); |
| 2343 LOperand* size = instr->size()->IsConstant() | 2351 LOperand* size = instr->size()->IsConstant() |
| 2344 ? UseConstant(instr->size()) | 2352 ? UseConstant(instr->size()) |
| 2345 : UseTempRegister(instr->size()); | 2353 : UseTempRegister(instr->size()); |
| 2346 LOperand* temp1 = TempRegister(); | 2354 LOperand* temp1 = TempRegister(); |
| 2347 LOperand* temp2 = TempRegister(); | 2355 LOperand* temp2 = TempRegister(); |
| 2348 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); | 2356 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); |
| 2349 return AssignPointerMap(DefineAsRegister(result)); | 2357 return AssignPointerMap(DefineAsRegister(result)); |
| 2350 } | 2358 } |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2569 | 2577 |
| 2570 | 2578 |
| 2571 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2579 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2572 LOperand* object = UseRegister(instr->object()); | 2580 LOperand* object = UseRegister(instr->object()); |
| 2573 LOperand* index = UseRegister(instr->index()); | 2581 LOperand* index = UseRegister(instr->index()); |
| 2574 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2582 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2575 } | 2583 } |
| 2576 | 2584 |
| 2577 | 2585 |
| 2578 } } // namespace v8::internal | 2586 } } // namespace v8::internal |
| OLD | NEW |