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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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/mips64/lithium-mips64.h ('k') | src/crankshaft/ppc/lithium-codegen-ppc.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/mips64/lithium-mips64.h" 5 #include "src/crankshaft/mips64/lithium-mips64.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 1765
1766 1766
1767 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1767 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1768 HClassOfTestAndBranch* instr) { 1768 HClassOfTestAndBranch* instr) {
1769 DCHECK(instr->value()->representation().IsTagged()); 1769 DCHECK(instr->value()->representation().IsTagged());
1770 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), 1770 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()),
1771 TempRegister()); 1771 TempRegister());
1772 } 1772 }
1773 1773
1774 1774
1775 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1776 LOperand* map = UseRegisterAtStart(instr->value());
1777 return DefineAsRegister(new(zone()) LMapEnumLength(map));
1778 }
1779
1780
1781 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1775 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1782 LOperand* string = UseRegisterAtStart(instr->string()); 1776 LOperand* string = UseRegisterAtStart(instr->string());
1783 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1777 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1784 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index)); 1778 return DefineAsRegister(new(zone()) LSeqStringGetChar(string, index));
1785 } 1779 }
1786 1780
1787 1781
1788 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1782 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1789 LOperand* string = UseRegisterAtStart(instr->string()); 1783 LOperand* string = UseRegisterAtStart(instr->string());
1790 LOperand* index = FLAG_debug_code 1784 LOperand* index = FLAG_debug_code
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
2581 LAllocateBlockContext* result = 2575 LAllocateBlockContext* result =
2582 new(zone()) LAllocateBlockContext(context, function); 2576 new(zone()) LAllocateBlockContext(context, function);
2583 return MarkAsCall(DefineFixed(result, cp), instr); 2577 return MarkAsCall(DefineFixed(result, cp), instr);
2584 } 2578 }
2585 2579
2586 2580
2587 } // namespace internal 2581 } // namespace internal
2588 } // namespace v8 2582 } // namespace v8
2589 2583
2590 #endif // V8_TARGET_ARCH_MIPS64 2584 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.h ('k') | src/crankshaft/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698