| 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 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1776 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1776 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1777 LOperand* object = UseFixed(instr->value(), a0); | 1777 LOperand* object = UseFixed(instr->value(), a0); |
| 1778 LDateField* result = | 1778 LDateField* result = |
| 1779 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); | 1779 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); |
| 1780 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); | 1780 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); |
| 1781 } | 1781 } |
| 1782 | 1782 |
| 1783 | 1783 |
| 1784 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1784 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
| 1785 LOperand* string = UseRegister(instr->string()); | 1785 LOperand* string = UseRegister(instr->string()); |
| 1786 LOperand* index = UseRegister(instr->index()); | 1786 LOperand* index = UseRegisterOrConstant(instr->index()); |
| 1787 LOperand* value = UseTempRegister(instr->value()); | 1787 LOperand* value = UseRegister(instr->value()); |
| 1788 LSeqStringSetChar* result = | 1788 return new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value); |
| 1789 new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value); | |
| 1790 return DefineAsRegister(result); | |
| 1791 } | 1789 } |
| 1792 | 1790 |
| 1793 | 1791 |
| 1794 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1792 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
| 1795 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1793 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
| 1796 LOperand* length = UseRegister(instr->length()); | 1794 LOperand* length = UseRegister(instr->length()); |
| 1797 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1795 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
| 1798 } | 1796 } |
| 1799 | 1797 |
| 1800 | 1798 |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2526 | 2524 |
| 2527 | 2525 |
| 2528 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2526 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2529 LOperand* object = UseRegister(instr->object()); | 2527 LOperand* object = UseRegister(instr->object()); |
| 2530 LOperand* index = UseRegister(instr->index()); | 2528 LOperand* index = UseRegister(instr->index()); |
| 2531 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2529 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2532 } | 2530 } |
| 2533 | 2531 |
| 2534 | 2532 |
| 2535 } } // namespace v8::internal | 2533 } } // namespace v8::internal |
| OLD | NEW |