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

Side by Side Diff: src/crankshaft/ia32/lithium-ia32.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/ia32/lithium-ia32.h ('k') | src/crankshaft/mips/lithium-codegen-mips.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/ia32/lithium-ia32.h" 5 #include "src/crankshaft/ia32/lithium-ia32.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_IA32 9 #if V8_TARGET_ARCH_IA32
10 10
(...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1781 1781
1782 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1782 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1783 HClassOfTestAndBranch* instr) { 1783 HClassOfTestAndBranch* instr) {
1784 DCHECK(instr->value()->representation().IsTagged()); 1784 DCHECK(instr->value()->representation().IsTagged());
1785 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), 1785 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()),
1786 TempRegister(), 1786 TempRegister(),
1787 TempRegister()); 1787 TempRegister());
1788 } 1788 }
1789 1789
1790 1790
1791 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1792 LOperand* map = UseRegisterAtStart(instr->value());
1793 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1794 }
1795
1796
1797 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1791 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1798 LOperand* string = UseRegisterAtStart(instr->string()); 1792 LOperand* string = UseRegisterAtStart(instr->string());
1799 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1793 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1800 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1794 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1801 } 1795 }
1802 1796
1803 1797
1804 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) { 1798 LOperand* LChunkBuilder::GetSeqStringSetCharOperand(HSeqStringSetChar* instr) {
1805 if (instr->encoding() == String::ONE_BYTE_ENCODING) { 1799 if (instr->encoding() == String::ONE_BYTE_ENCODING) {
1806 if (FLAG_debug_code) { 1800 if (FLAG_debug_code) {
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2694 LAllocateBlockContext* result = 2688 LAllocateBlockContext* result =
2695 new(zone()) LAllocateBlockContext(context, function); 2689 new(zone()) LAllocateBlockContext(context, function);
2696 return MarkAsCall(DefineFixed(result, esi), instr); 2690 return MarkAsCall(DefineFixed(result, esi), instr);
2697 } 2691 }
2698 2692
2699 2693
2700 } // namespace internal 2694 } // namespace internal
2701 } // namespace v8 2695 } // namespace v8
2702 2696
2703 #endif // V8_TARGET_ARCH_IA32 2697 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-ia32.h ('k') | src/crankshaft/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698