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 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1749 } | 1749 } |
1750 | 1750 |
1751 | 1751 |
1752 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1752 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
1753 LOperand* object = UseFixed(instr->value(), rax); | 1753 LOperand* object = UseFixed(instr->value(), rax); |
1754 LDateField* result = new(zone()) LDateField(object, instr->index()); | 1754 LDateField* result = new(zone()) LDateField(object, instr->index()); |
1755 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); | 1755 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); |
1756 } | 1756 } |
1757 | 1757 |
1758 | 1758 |
1759 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | |
1760 LOperand* string = UseRegisterAtStart(instr->string()); | |
1761 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | |
1762 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); | |
1763 } | |
1764 | |
1765 | |
1766 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 1759 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
1767 LOperand* string = UseRegisterAtStart(instr->string()); | 1760 LOperand* string = UseRegisterAtStart(instr->string()); |
1768 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); | 1761 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); |
1769 LOperand* value = UseRegisterOrConstantAtStart(instr->value()); | 1762 LOperand* value = UseRegisterOrConstantAtStart(instr->value()); |
1770 return new(zone()) LSeqStringSetChar(string, index, value); | 1763 return new(zone()) LSeqStringSetChar(string, index, value); |
1771 } | 1764 } |
1772 | 1765 |
1773 | 1766 |
1774 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1767 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1775 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1768 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2549 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2542 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2550 LOperand* object = UseRegister(instr->object()); | 2543 LOperand* object = UseRegister(instr->object()); |
2551 LOperand* index = UseTempRegister(instr->index()); | 2544 LOperand* index = UseTempRegister(instr->index()); |
2552 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2545 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2553 } | 2546 } |
2554 | 2547 |
2555 | 2548 |
2556 } } // namespace v8::internal | 2549 } } // namespace v8::internal |
2557 | 2550 |
2558 #endif // V8_TARGET_ARCH_X64 | 2551 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |