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

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

Powered by Google App Engine
This is Rietveld 408576698