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 2385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2396 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); | 2396 LAllocate* result = new(zone()) LAllocate(size, temp1, temp2); |
2397 return AssignPointerMap(DefineAsRegister(result)); | 2397 return AssignPointerMap(DefineAsRegister(result)); |
2398 } | 2398 } |
2399 | 2399 |
2400 | 2400 |
2401 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2401 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
2402 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, r0), instr); | 2402 return MarkAsCall(DefineFixed(new(zone()) LArrayLiteral, r0), instr); |
2403 } | 2403 } |
2404 | 2404 |
2405 | 2405 |
2406 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | |
2407 return MarkAsCall(DefineFixed(new(zone()) LObjectLiteral, r0), instr); | |
2408 } | |
2409 | |
2410 | |
2411 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2406 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
2412 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, r0), instr); | 2407 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, r0), instr); |
2413 } | 2408 } |
2414 | 2409 |
2415 | 2410 |
2416 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 2411 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { |
2417 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, r0), instr); | 2412 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, r0), instr); |
2418 } | 2413 } |
2419 | 2414 |
2420 | 2415 |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2626 | 2621 |
2627 | 2622 |
2628 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2623 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2629 LOperand* object = UseRegister(instr->object()); | 2624 LOperand* object = UseRegister(instr->object()); |
2630 LOperand* index = UseRegister(instr->index()); | 2625 LOperand* index = UseRegister(instr->index()); |
2631 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2626 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2632 } | 2627 } |
2633 | 2628 |
2634 | 2629 |
2635 } } // namespace v8::internal | 2630 } } // namespace v8::internal |
OLD | NEW |