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

Side by Side Diff: src/crankshaft/s390/lithium-s390.cc

Issue 2622783002: [crankshaft] Remove dead Variable hole-checking code (Closed)
Patch Set: Update golden files Created 3 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/s390/lithium-codegen-s390.cc ('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/s390/lithium-s390.h" 5 #include "src/crankshaft/s390/lithium-s390.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 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after
1759 } else if (r.IsTagged()) { 1759 } else if (r.IsTagged()) {
1760 return DefineAsRegister(new (zone()) LConstantT); 1760 return DefineAsRegister(new (zone()) LConstantT);
1761 } else { 1761 } else {
1762 UNREACHABLE(); 1762 UNREACHABLE();
1763 return NULL; 1763 return NULL;
1764 } 1764 }
1765 } 1765 }
1766 1766
1767 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1767 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1768 LOperand* context = UseRegisterAtStart(instr->value()); 1768 LOperand* context = UseRegisterAtStart(instr->value());
1769 LInstruction* result = 1769 return DefineAsRegister(new (zone()) LLoadContextSlot(context));
1770 DefineAsRegister(new (zone()) LLoadContextSlot(context));
1771 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
1772 result = AssignEnvironment(result);
1773 }
1774 return result;
1775 } 1770 }
1776 1771
1777 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1772 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1778 LOperand* context; 1773 LOperand* context;
1779 LOperand* value; 1774 LOperand* value;
1780 if (instr->NeedsWriteBarrier()) { 1775 if (instr->NeedsWriteBarrier()) {
1781 context = UseTempRegister(instr->context()); 1776 context = UseTempRegister(instr->context());
1782 value = UseTempRegister(instr->value()); 1777 value = UseTempRegister(instr->value());
1783 } else { 1778 } else {
1784 context = UseRegister(instr->context()); 1779 context = UseRegister(instr->context());
1785 value = UseRegister(instr->value()); 1780 value = UseRegister(instr->value());
1786 } 1781 }
1787 LInstruction* result = new (zone()) LStoreContextSlot(context, value); 1782 return new (zone()) LStoreContextSlot(context, value);
1788 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
1789 result = AssignEnvironment(result);
1790 }
1791 return result;
1792 } 1783 }
1793 1784
1794 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1785 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1795 LOperand* obj = UseRegisterAtStart(instr->object()); 1786 LOperand* obj = UseRegisterAtStart(instr->object());
1796 return DefineAsRegister(new (zone()) LLoadNamedField(obj)); 1787 return DefineAsRegister(new (zone()) LLoadNamedField(obj));
1797 } 1788 }
1798 1789
1799 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 1790 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
1800 HLoadFunctionPrototype* instr) { 1791 HLoadFunctionPrototype* instr) {
1801 return AssignEnvironment(DefineAsRegister( 1792 return AssignEnvironment(DefineAsRegister(
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2147 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2138 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2148 LOperand* object = UseRegister(instr->object()); 2139 LOperand* object = UseRegister(instr->object());
2149 LOperand* index = UseTempRegister(instr->index()); 2140 LOperand* index = UseTempRegister(instr->index());
2150 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2141 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2151 LInstruction* result = DefineSameAsFirst(load); 2142 LInstruction* result = DefineSameAsFirst(load);
2152 return AssignPointerMap(result); 2143 return AssignPointerMap(result);
2153 } 2144 }
2154 2145
2155 } // namespace internal 2146 } // namespace internal
2156 } // namespace v8 2147 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698