| 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 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2334 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { | 2334 LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
| 2335 info()->MarkAsDeferredCalling(); | 2335 info()->MarkAsDeferredCalling(); |
| 2336 LOperand* size = UseTempRegister(instr->size()); | 2336 LOperand* size = UseTempRegister(instr->size()); |
| 2337 LOperand* temp1 = TempRegister(); | 2337 LOperand* temp1 = TempRegister(); |
| 2338 LOperand* temp2 = TempRegister(); | 2338 LOperand* temp2 = TempRegister(); |
| 2339 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); | 2339 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); |
| 2340 return AssignPointerMap(DefineAsRegister(result)); | 2340 return AssignPointerMap(DefineAsRegister(result)); |
| 2341 } | 2341 } |
| 2342 | 2342 |
| 2343 | 2343 |
| 2344 LInstruction* LChunkBuilder::DoFastLiteral(HFastLiteral* instr) { | |
| 2345 return MarkAsCall(DefineFixed(new(zone()) LFastLiteral, r0), instr); | |
| 2346 } | |
| 2347 | |
| 2348 | |
| 2349 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2344 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
| 2350 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, r0), instr); | 2345 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, r0), instr); |
| 2351 } | 2346 } |
| 2352 | 2347 |
| 2353 | 2348 |
| 2354 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | 2349 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { |
| 2355 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, r0), instr); | 2350 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, r0), instr); |
| 2356 } | 2351 } |
| 2357 | 2352 |
| 2358 | 2353 |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2565 | 2560 |
| 2566 | 2561 |
| 2567 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2562 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2568 LOperand* object = UseRegister(instr->object()); | 2563 LOperand* object = UseRegister(instr->object()); |
| 2569 LOperand* index = UseRegister(instr->index()); | 2564 LOperand* index = UseRegister(instr->index()); |
| 2570 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2565 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2571 } | 2566 } |
| 2572 | 2567 |
| 2573 | 2568 |
| 2574 } } // namespace v8::internal | 2569 } } // namespace v8::internal |
| OLD | NEW |