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 1726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) { | 1744 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
1745 LOperand* string = UseRegister(instr->string()); | 1745 LOperand* string = UseRegister(instr->string()); |
1746 LOperand* index = UseRegisterOrConstant(instr->index()); | 1746 LOperand* index = UseRegisterOrConstant(instr->index()); |
1747 return AssignEnvironment(AssignPointerMap(DefineAsRegister( | 1747 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); |
1748 new LStringCharCodeAt(string, index)))); | 1748 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); |
1749 } | 1749 } |
1750 | 1750 |
1751 | 1751 |
1752 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 1752 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { |
1753 LOperand* string = UseRegisterAtStart(instr->value()); | 1753 LOperand* string = UseRegisterAtStart(instr->value()); |
1754 return DefineAsRegister(new LStringLength(string)); | 1754 return DefineAsRegister(new LStringLength(string)); |
1755 } | 1755 } |
1756 | 1756 |
1757 | 1757 |
1758 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 1758 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1886 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1886 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
1887 HEnvironment* outer = current_block_->last_environment()->outer(); | 1887 HEnvironment* outer = current_block_->last_environment()->outer(); |
1888 current_block_->UpdateEnvironment(outer); | 1888 current_block_->UpdateEnvironment(outer); |
1889 return NULL; | 1889 return NULL; |
1890 } | 1890 } |
1891 | 1891 |
1892 | 1892 |
1893 } } // namespace v8::internal | 1893 } } // namespace v8::internal |
1894 | 1894 |
1895 #endif // V8_TARGET_ARCH_IA32 | 1895 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |