| 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 2519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2530 } | 2530 } |
| 2531 | 2531 |
| 2532 | 2532 |
| 2533 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 2533 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
| 2534 LOperand* context = UseFixed(instr->context(), esi); | 2534 LOperand* context = UseFixed(instr->context(), esi); |
| 2535 return MarkAsCall( | 2535 return MarkAsCall( |
| 2536 DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); | 2536 DefineFixed(new(zone()) LArrayLiteral(context), eax), instr); |
| 2537 } | 2537 } |
| 2538 | 2538 |
| 2539 | 2539 |
| 2540 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | |
| 2541 LOperand* context = UseFixed(instr->context(), esi); | |
| 2542 return MarkAsCall( | |
| 2543 DefineFixed(new(zone()) LObjectLiteral(context), eax), instr); | |
| 2544 } | |
| 2545 | |
| 2546 | |
| 2547 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2540 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| 2548 LOperand* context = UseFixed(instr->context(), esi); | 2541 LOperand* context = UseFixed(instr->context(), esi); |
| 2549 return MarkAsCall( | 2542 return MarkAsCall( |
| 2550 DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr); | 2543 DefineFixed(new(zone()) LRegExpLiteral(context), eax), instr); |
| 2551 } | 2544 } |
| 2552 | 2545 |
| 2553 | 2546 |
| 2554 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 2547 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { |
| 2555 LOperand* context = UseFixed(instr->context(), esi); | 2548 LOperand* context = UseFixed(instr->context(), esi); |
| 2556 return MarkAsCall( | 2549 return MarkAsCall( |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2780 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2773 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2781 LOperand* object = UseRegister(instr->object()); | 2774 LOperand* object = UseRegister(instr->object()); |
| 2782 LOperand* index = UseTempRegister(instr->index()); | 2775 LOperand* index = UseTempRegister(instr->index()); |
| 2783 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2776 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2784 } | 2777 } |
| 2785 | 2778 |
| 2786 | 2779 |
| 2787 } } // namespace v8::internal | 2780 } } // namespace v8::internal |
| 2788 | 2781 |
| 2789 #endif // V8_TARGET_ARCH_IA32 | 2782 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |