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

Side by Side Diff: src/crankshaft/arm/lithium-arm.cc

Issue 1614943002: [crankshaft] Remove the useless HMapEnumLength instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Put NoObservableSideEffectsScope there Created 4 years, 11 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
« no previous file with comments | « src/crankshaft/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/crankshaft/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1812 1812
1813 1813
1814 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1814 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1815 HClassOfTestAndBranch* instr) { 1815 HClassOfTestAndBranch* instr) {
1816 DCHECK(instr->value()->representation().IsTagged()); 1816 DCHECK(instr->value()->representation().IsTagged());
1817 LOperand* value = UseRegister(instr->value()); 1817 LOperand* value = UseRegister(instr->value());
1818 return new(zone()) LClassOfTestAndBranch(value, TempRegister()); 1818 return new(zone()) LClassOfTestAndBranch(value, TempRegister());
1819 } 1819 }
1820 1820
1821 1821
1822 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1823 LOperand* map = UseRegisterAtStart(instr->value());
1824 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1825 }
1826
1827
1828 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1822 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1829 LOperand* string = UseRegisterAtStart(instr->string()); 1823 LOperand* string = UseRegisterAtStart(instr->string());
1830 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1824 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1831 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1825 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1832 } 1826 }
1833 1827
1834 1828
1835 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1829 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1836 LOperand* string = UseRegisterAtStart(instr->string()); 1830 LOperand* string = UseRegisterAtStart(instr->string());
1837 LOperand* index = FLAG_debug_code 1831 LOperand* index = FLAG_debug_code
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2626 HAllocateBlockContext* instr) { 2620 HAllocateBlockContext* instr) {
2627 LOperand* context = UseFixed(instr->context(), cp); 2621 LOperand* context = UseFixed(instr->context(), cp);
2628 LOperand* function = UseRegisterAtStart(instr->function()); 2622 LOperand* function = UseRegisterAtStart(instr->function());
2629 LAllocateBlockContext* result = 2623 LAllocateBlockContext* result =
2630 new(zone()) LAllocateBlockContext(context, function); 2624 new(zone()) LAllocateBlockContext(context, function);
2631 return MarkAsCall(DefineFixed(result, cp), instr); 2625 return MarkAsCall(DefineFixed(result, cp), instr);
2632 } 2626 }
2633 2627
2634 } // namespace internal 2628 } // namespace internal
2635 } // namespace v8 2629 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698