Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 18508002: Remove HFixedArrayBaseLength instruction and replace with regular HLoadNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1809 1809
1810 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1810 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1811 HClassOfTestAndBranch* instr) { 1811 HClassOfTestAndBranch* instr) {
1812 ASSERT(instr->value()->representation().IsTagged()); 1812 ASSERT(instr->value()->representation().IsTagged());
1813 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), 1813 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()),
1814 TempRegister(), 1814 TempRegister(),
1815 TempRegister()); 1815 TempRegister());
1816 } 1816 }
1817 1817
1818 1818
1819 LInstruction* LChunkBuilder::DoFixedArrayBaseLength(
1820 HFixedArrayBaseLength* instr) {
1821 LOperand* array = UseRegisterAtStart(instr->value());
1822 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array));
1823 }
1824
1825
1826 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1819 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1827 LOperand* map = UseRegisterAtStart(instr->value()); 1820 LOperand* map = UseRegisterAtStart(instr->value());
1828 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1821 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1829 } 1822 }
1830 1823
1831 1824
1832 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { 1825 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) {
1833 LOperand* object = UseRegisterAtStart(instr->value()); 1826 LOperand* object = UseRegisterAtStart(instr->value());
1834 return DefineAsRegister(new(zone()) LElementsKind(object)); 1827 return DefineAsRegister(new(zone()) LElementsKind(object));
1835 } 1828 }
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2782 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2790 LOperand* object = UseRegister(instr->object()); 2783 LOperand* object = UseRegister(instr->object());
2791 LOperand* index = UseTempRegister(instr->index()); 2784 LOperand* index = UseTempRegister(instr->index());
2792 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2785 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2793 } 2786 }
2794 2787
2795 2788
2796 } } // namespace v8::internal 2789 } } // namespace v8::internal
2797 2790
2798 #endif // V8_TARGET_ARCH_IA32 2791 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/hydrogen.cc ('K') | « src/ia32/lithium-ia32.h ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698