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

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

Issue 2396023002: [crankshaft] Remove HLoadGlobalGeneric and use HCallWithDescriptor instead to call LoadGlobalIC. (Closed)
Patch Set: Created 4 years, 2 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-s390.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/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 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 } else if (r.IsExternal()) { 1797 } else if (r.IsExternal()) {
1798 return DefineAsRegister(new (zone()) LConstantE); 1798 return DefineAsRegister(new (zone()) LConstantE);
1799 } else if (r.IsTagged()) { 1799 } else if (r.IsTagged()) {
1800 return DefineAsRegister(new (zone()) LConstantT); 1800 return DefineAsRegister(new (zone()) LConstantT);
1801 } else { 1801 } else {
1802 UNREACHABLE(); 1802 UNREACHABLE();
1803 return NULL; 1803 return NULL;
1804 } 1804 }
1805 } 1805 }
1806 1806
1807 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1808 LOperand* context = UseFixed(instr->context(), cp);
1809 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
1810
1811 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector);
1812 return MarkAsCall(DefineFixed(result, r2), instr);
1813 }
1814
1815 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1807 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1816 LOperand* context = UseRegisterAtStart(instr->value()); 1808 LOperand* context = UseRegisterAtStart(instr->value());
1817 LInstruction* result = 1809 LInstruction* result =
1818 DefineAsRegister(new (zone()) LLoadContextSlot(context)); 1810 DefineAsRegister(new (zone()) LLoadContextSlot(context));
1819 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { 1811 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
1820 result = AssignEnvironment(result); 1812 result = AssignEnvironment(result);
1821 } 1813 }
1822 return result; 1814 return result;
1823 } 1815 }
1824 1816
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2211 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2220 LOperand* object = UseRegister(instr->object()); 2212 LOperand* object = UseRegister(instr->object());
2221 LOperand* index = UseTempRegister(instr->index()); 2213 LOperand* index = UseTempRegister(instr->index());
2222 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2214 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2223 LInstruction* result = DefineSameAsFirst(load); 2215 LInstruction* result = DefineSameAsFirst(load);
2224 return AssignPointerMap(result); 2216 return AssignPointerMap(result);
2225 } 2217 }
2226 2218
2227 } // namespace internal 2219 } // namespace internal
2228 } // namespace v8 2220 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-s390.h ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698