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 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2271 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); | 2271 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); |
2272 return AssignPointerMap(DefineAsRegister(result)); | 2272 return AssignPointerMap(DefineAsRegister(result)); |
2273 } | 2273 } |
2274 | 2274 |
2275 | 2275 |
2276 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2276 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
2277 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, v0), instr); | 2277 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, v0), instr); |
2278 } | 2278 } |
2279 | 2279 |
2280 | 2280 |
2281 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | |
2282 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, v0), instr); | |
2283 } | |
2284 | |
2285 | |
2286 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2281 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
2287 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, v0), instr); | 2282 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, v0), instr); |
2288 } | 2283 } |
2289 | 2284 |
2290 | 2285 |
2291 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 2286 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { |
2292 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, v0), instr); | 2287 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, v0), instr); |
2293 } | 2288 } |
2294 | 2289 |
2295 | 2290 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2501 | 2496 |
2502 | 2497 |
2503 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2498 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2504 LOperand* object = UseRegister(instr->object()); | 2499 LOperand* object = UseRegister(instr->object()); |
2505 LOperand* index = UseRegister(instr->index()); | 2500 LOperand* index = UseRegister(instr->index()); |
2506 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2501 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2507 } | 2502 } |
2508 | 2503 |
2509 | 2504 |
2510 } } // namespace v8::internal | 2505 } } // namespace v8::internal |
OLD | NEW |