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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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/ppc/lithium-ppc.h ('k') | src/crankshaft/x64/lithium-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/ppc/lithium-ppc.h" 5 #include "src/crankshaft/ppc/lithium-ppc.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 1775
1776 1776
1777 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( 1777 LInstruction* LChunkBuilder::DoClassOfTestAndBranch(
1778 HClassOfTestAndBranch* instr) { 1778 HClassOfTestAndBranch* instr) {
1779 DCHECK(instr->value()->representation().IsTagged()); 1779 DCHECK(instr->value()->representation().IsTagged());
1780 LOperand* value = UseRegister(instr->value()); 1780 LOperand* value = UseRegister(instr->value());
1781 return new (zone()) LClassOfTestAndBranch(value, TempRegister()); 1781 return new (zone()) LClassOfTestAndBranch(value, TempRegister());
1782 } 1782 }
1783 1783
1784 1784
1785 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) {
1786 LOperand* map = UseRegisterAtStart(instr->value());
1787 return DefineAsRegister(new (zone()) LMapEnumLength(map));
1788 }
1789
1790
1791 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 1785 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
1792 LOperand* string = UseRegisterAtStart(instr->string()); 1786 LOperand* string = UseRegisterAtStart(instr->string());
1793 LOperand* index = UseRegisterOrConstantAtStart(instr->index()); 1787 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
1794 return DefineAsRegister(new (zone()) LSeqStringGetChar(string, index)); 1788 return DefineAsRegister(new (zone()) LSeqStringGetChar(string, index));
1795 } 1789 }
1796 1790
1797 1791
1798 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1792 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1799 LOperand* string = UseRegisterAtStart(instr->string()); 1793 LOperand* string = UseRegisterAtStart(instr->string());
1800 LOperand* index = FLAG_debug_code 1794 LOperand* index = FLAG_debug_code
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
2577 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2571 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2578 HAllocateBlockContext* instr) { 2572 HAllocateBlockContext* instr) {
2579 LOperand* context = UseFixed(instr->context(), cp); 2573 LOperand* context = UseFixed(instr->context(), cp);
2580 LOperand* function = UseRegisterAtStart(instr->function()); 2574 LOperand* function = UseRegisterAtStart(instr->function());
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 } // namespace internal 2579 } // namespace internal
2586 } // namespace v8 2580 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.h ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698