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

Side by Side Diff: src/arm/lithium-arm.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 1778 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 1789
1790 1790
1791 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1791 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1792 HClassOfTestAndBranch* instr) { 1792 HClassOfTestAndBranch* instr) {
1793 ASSERT(instr->value()->representation().IsTagged()); 1793 ASSERT(instr->value()->representation().IsTagged());
1794 LOperand* value = UseRegister(instr->value()); 1794 LOperand* value = UseRegister(instr->value());
1795 return new(zone()) LClassOfTestAndBranch(value, TempRegister()); 1795 return new(zone()) LClassOfTestAndBranch(value, TempRegister());
1796 } 1796 }
1797 1797
1798 1798
1799 LInstruction* LChunkBuilder::DoFixedArrayBaseLength(
1800 HFixedArrayBaseLength* instr) {
1801 LOperand* array = UseRegisterAtStart(instr->value());
1802 return DefineAsRegister(new(zone()) LFixedArrayBaseLength(array));
1803 }
1804
1805
1806 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { 1799 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1807 LOperand* map = UseRegisterAtStart(instr->value()); 1800 LOperand* map = UseRegisterAtStart(instr->value());
1808 return DefineAsRegister(new(zone()) LMapEnumLength(map)); 1801 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1809 } 1802 }
1810 1803
1811 1804
1812 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) { 1805 LInstruction* LChunkBuilder::DoElementsKind(HElementsKind* instr) {
1813 LOperand* object = UseRegisterAtStart(instr->value()); 1806 LOperand* object = UseRegisterAtStart(instr->value());
1814 return DefineAsRegister(new(zone()) LElementsKind(object)); 1807 return DefineAsRegister(new(zone()) LElementsKind(object));
1815 } 1808 }
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
2635 2628
2636 2629
2637 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2630 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2638 LOperand* object = UseRegister(instr->object()); 2631 LOperand* object = UseRegister(instr->object());
2639 LOperand* index = UseRegister(instr->index()); 2632 LOperand* index = UseRegister(instr->index());
2640 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2633 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2641 } 2634 }
2642 2635
2643 2636
2644 } } // namespace v8::internal 2637 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698