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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { | 700 LInstruction* LChunkBuilder::DoDummyUse(HDummyUse* instr) { |
701 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); | 701 return DefineAsRegister(new(zone()) LDummyUse(UseAny(instr->value()))); |
702 } | 702 } |
703 | 703 |
704 | 704 |
705 LInstruction* LChunkBuilder::DoSoftDeoptimize(HSoftDeoptimize* instr) { | 705 LInstruction* LChunkBuilder::DoSoftDeoptimize(HSoftDeoptimize* instr) { |
706 return AssignEnvironment(new(zone()) LDeoptimize); | 706 return AssignEnvironment(new(zone()) LDeoptimize); |
707 } | 707 } |
708 | 708 |
709 | 709 |
| 710 LInstruction* LChunkBuilder::DoDeoptCounter(HDeoptCounter* instr) { |
| 711 return AssignEnvironment(new(zone()) LDeoptCounter(instr->id(), |
| 712 instr->initial_value(), |
| 713 instr->max_value())); |
| 714 } |
| 715 |
| 716 |
| 717 LInstruction* LChunkBuilder::DoDeoptCounterAdd(HDeoptCounterAdd* instr) { |
| 718 LOperand* temp = TempRegister(); |
| 719 LOperand* temp2 = TempRegister(); |
| 720 return AssignEnvironment(new(zone()) LDeoptCounterAdd(instr->counter()->id(), |
| 721 instr->delta(), |
| 722 temp, |
| 723 temp2)); |
| 724 } |
| 725 |
| 726 |
710 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) { | 727 LInstruction* LChunkBuilder::DoDeoptimize(HDeoptimize* instr) { |
711 return AssignEnvironment(new(zone()) LDeoptimize); | 728 return AssignEnvironment(new(zone()) LDeoptimize); |
712 } | 729 } |
713 | 730 |
714 | 731 |
715 LInstruction* LChunkBuilder::DoShift(Token::Value op, | 732 LInstruction* LChunkBuilder::DoShift(Token::Value op, |
716 HBitwiseBinaryOperation* instr) { | 733 HBitwiseBinaryOperation* instr) { |
717 if (instr->representation().IsSmiOrTagged()) { | 734 if (instr->representation().IsSmiOrTagged()) { |
718 ASSERT(instr->left()->representation().IsSmiOrTagged()); | 735 ASSERT(instr->left()->representation().IsSmiOrTagged()); |
719 ASSERT(instr->right()->representation().IsSmiOrTagged()); | 736 ASSERT(instr->right()->representation().IsSmiOrTagged()); |
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2501 | 2518 |
2502 | 2519 |
2503 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2520 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2504 LOperand* object = UseRegister(instr->object()); | 2521 LOperand* object = UseRegister(instr->object()); |
2505 LOperand* index = UseRegister(instr->index()); | 2522 LOperand* index = UseRegister(instr->index()); |
2506 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2523 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2507 } | 2524 } |
2508 | 2525 |
2509 | 2526 |
2510 } } // namespace v8::internal | 2527 } } // namespace v8::internal |
OLD | NEW |