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

Side by Side Diff: src/crankshaft/x64/lithium-x64.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/x64/lithium-x64.h ('k') | src/crankshaft/x87/lithium-codegen-x87.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/x64/lithium-x64.h" 5 #include "src/crankshaft/x64/lithium-x64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 1774
1775 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1775 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1776 HClassOfTestAndBranch* instr) { 1776 HClassOfTestAndBranch* instr) {
1777 LOperand* value = UseRegister(instr->value()); 1777 LOperand* value = UseRegister(instr->value());
1778 return new(zone()) LClassOfTestAndBranch(value, 1778 return new(zone()) LClassOfTestAndBranch(value,
1779 TempRegister(), 1779 TempRegister(),
1780 TempRegister()); 1780 TempRegister());
1781 } 1781 }
1782 1782
1783 1783
1784 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1785 LOperand* map = UseRegisterAtStart(instr->value());
1786 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1787 }
1788
1789
1790 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1784 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1791 LOperand* string = UseRegisterAtStart(instr->string()); 1785 LOperand* string = UseRegisterAtStart(instr->string());
1792 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1786 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1793 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1787 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1794 } 1788 }
1795 1789
1796 1790
1797 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1791 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1798 LOperand* string = UseRegisterAtStart(instr->string()); 1792 LOperand* string = UseRegisterAtStart(instr->string());
1799 LOperand* index = FLAG_debug_code 1793 LOperand* index = FLAG_debug_code
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 LAllocateBlockContext* result = 2677 LAllocateBlockContext* result =
2684 new(zone()) LAllocateBlockContext(context, function); 2678 new(zone()) LAllocateBlockContext(context, function);
2685 return MarkAsCall(DefineFixed(result, rsi), instr); 2679 return MarkAsCall(DefineFixed(result, rsi), instr);
2686 } 2680 }
2687 2681
2688 2682
2689 } // namespace internal 2683 } // namespace internal
2690 } // namespace v8 2684 } // namespace v8
2691 2685
2692 #endif // V8_TARGET_ARCH_X64 2686 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-x64.h ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698