OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1734 | 1734 |
1735 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 1735 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
1736 LOperand* obj = UseFixed(instr->object(), edx); | 1736 LOperand* obj = UseFixed(instr->object(), edx); |
1737 LOperand* val = UseFixed(instr->value(), eax); | 1737 LOperand* val = UseFixed(instr->value(), eax); |
1738 | 1738 |
1739 LStoreNamedGeneric* result = new LStoreNamedGeneric(obj, val); | 1739 LStoreNamedGeneric* result = new LStoreNamedGeneric(obj, val); |
1740 return MarkAsCall(result, instr); | 1740 return MarkAsCall(result, instr); |
1741 } | 1741 } |
1742 | 1742 |
1743 | 1743 |
| 1744 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 1745 LOperand* string = UseRegister(instr->string()); |
| 1746 LOperand* index = UseRegisterOrConstant(instr->index()); |
| 1747 return AssignEnvironment(AssignPointerMap(DefineAsRegister( |
| 1748 new LStringCharCodeAt(string, index)))); |
| 1749 } |
| 1750 |
| 1751 |
| 1752 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { |
| 1753 LOperand* string = UseRegisterAtStart(instr->value()); |
| 1754 return DefineAsRegister(new LStringLength(string)); |
| 1755 } |
| 1756 |
| 1757 |
1744 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 1758 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
1745 return MarkAsCall(DefineFixed(new LArrayLiteral, eax), instr); | 1759 return MarkAsCall(DefineFixed(new LArrayLiteral, eax), instr); |
1746 } | 1760 } |
1747 | 1761 |
1748 | 1762 |
1749 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | 1763 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { |
1750 return MarkAsCall(DefineFixed(new LObjectLiteral, eax), instr); | 1764 return MarkAsCall(DefineFixed(new LObjectLiteral, eax), instr); |
1751 } | 1765 } |
1752 | 1766 |
1753 | 1767 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1872 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1886 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
1873 HEnvironment* outer = current_block_->last_environment()->outer(); | 1887 HEnvironment* outer = current_block_->last_environment()->outer(); |
1874 current_block_->UpdateEnvironment(outer); | 1888 current_block_->UpdateEnvironment(outer); |
1875 return NULL; | 1889 return NULL; |
1876 } | 1890 } |
1877 | 1891 |
1878 | 1892 |
1879 } } // namespace v8::internal | 1893 } } // namespace v8::internal |
1880 | 1894 |
1881 #endif // V8_TARGET_ARCH_IA32 | 1895 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |