Chromium Code Reviews| 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 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1735 | 1735 |
| 1736 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 1736 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
| 1737 LOperand* obj = UseFixed(instr->object(), edx); | 1737 LOperand* obj = UseFixed(instr->object(), edx); |
| 1738 LOperand* val = UseFixed(instr->value(), eax); | 1738 LOperand* val = UseFixed(instr->value(), eax); |
| 1739 | 1739 |
| 1740 LStoreNamedGeneric* result = new LStoreNamedGeneric(obj, val); | 1740 LStoreNamedGeneric* result = new LStoreNamedGeneric(obj, val); |
| 1741 return MarkAsCall(result, instr); | 1741 return MarkAsCall(result, instr); |
| 1742 } | 1742 } |
| 1743 | 1743 |
| 1744 | 1744 |
| 1745 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | |
| 1746 return AssignEnvironment(AssignPointerMap(DefineAsRegister( | |
|
fschneider
2011/01/14 12:06:11
I'd rather split this into multiple statements to
| |
| 1747 new LStringCharCodeAt(UseRegister(instr->string()), | |
| 1748 UseRegisterOrConstant(instr->index()))))); | |
| 1749 } | |
| 1750 | |
| 1751 | |
| 1752 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | |
| 1753 return DefineAsRegister( | |
|
fschneider
2011/01/14 12:06:11
I'd also split this into 2 statement here.
| |
| 1754 new LStringLength(UseRegisterAtStart(instr->value()))); | |
| 1755 } | |
| 1756 | |
| 1757 | |
| 1745 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 1758 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
| 1746 return MarkAsCall(DefineFixed(new LArrayLiteral, eax), instr); | 1759 return MarkAsCall(DefineFixed(new LArrayLiteral, eax), instr); |
| 1747 } | 1760 } |
| 1748 | 1761 |
| 1749 | 1762 |
| 1750 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | 1763 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { |
| 1751 return MarkAsCall(DefineFixed(new LObjectLiteral, eax), instr); | 1764 return MarkAsCall(DefineFixed(new LObjectLiteral, eax), instr); |
| 1752 } | 1765 } |
| 1753 | 1766 |
| 1754 | 1767 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1873 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1886 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 1874 HEnvironment* outer = current_block_->last_environment()->outer(); | 1887 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 1875 current_block_->UpdateEnvironment(outer); | 1888 current_block_->UpdateEnvironment(outer); |
| 1876 return NULL; | 1889 return NULL; |
| 1877 } | 1890 } |
| 1878 | 1891 |
| 1879 | 1892 |
| 1880 } } // namespace v8::internal | 1893 } } // namespace v8::internal |
| 1881 | 1894 |
| 1882 #endif // V8_TARGET_ARCH_IA32 | 1895 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |