| 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 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2261 LOperand* size = instr->size()->IsConstant() | 2261 LOperand* size = instr->size()->IsConstant() |
| 2262 ? UseConstant(instr->size()) | 2262 ? UseConstant(instr->size()) |
| 2263 : UseTempRegister(instr->size()); | 2263 : UseTempRegister(instr->size()); |
| 2264 LOperand* temp1 = TempRegister(); | 2264 LOperand* temp1 = TempRegister(); |
| 2265 LOperand* temp2 = TempRegister(); | 2265 LOperand* temp2 = TempRegister(); |
| 2266 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); | 2266 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); |
| 2267 return AssignPointerMap(DefineAsRegister(result)); | 2267 return AssignPointerMap(DefineAsRegister(result)); |
| 2268 } | 2268 } |
| 2269 | 2269 |
| 2270 | 2270 |
| 2271 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | |
| 2272 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, v0), instr); | |
| 2273 } | |
| 2274 | |
| 2275 | |
| 2276 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2271 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| 2277 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, v0), instr); | 2272 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, v0), instr); |
| 2278 } | 2273 } |
| 2279 | 2274 |
| 2280 | 2275 |
| 2281 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 2276 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { |
| 2282 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, v0), instr); | 2277 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, v0), instr); |
| 2283 } | 2278 } |
| 2284 | 2279 |
| 2285 | 2280 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2491 | 2486 |
| 2492 | 2487 |
| 2493 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2488 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2494 LOperand* object = UseRegister(instr->object()); | 2489 LOperand* object = UseRegister(instr->object()); |
| 2495 LOperand* index = UseRegister(instr->index()); | 2490 LOperand* index = UseRegister(instr->index()); |
| 2496 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2491 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2497 } | 2492 } |
| 2498 | 2493 |
| 2499 | 2494 |
| 2500 } } // namespace v8::internal | 2495 } } // namespace v8::internal |
| OLD | NEW |