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

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

Issue 2398683004: [crankshaft] Remove HLoadNamedGeneric and use HCallWithDescriptor to call LoadIC. (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 1818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1829 result = AssignEnvironment(result); 1829 result = AssignEnvironment(result);
1830 } 1830 }
1831 return result; 1831 return result;
1832 } 1832 }
1833 1833
1834 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1834 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1835 LOperand* obj = UseRegisterAtStart(instr->object()); 1835 LOperand* obj = UseRegisterAtStart(instr->object());
1836 return DefineAsRegister(new (zone()) LLoadNamedField(obj)); 1836 return DefineAsRegister(new (zone()) LLoadNamedField(obj));
1837 } 1837 }
1838 1838
1839 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
1840 LOperand* context = UseFixed(instr->context(), cp);
1841 LOperand* object =
1842 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
1843 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
1844
1845 LInstruction* result =
1846 DefineFixed(new (zone()) LLoadNamedGeneric(context, object, vector), r2);
1847 return MarkAsCall(result, instr);
1848 }
1849
1850 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 1839 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
1851 HLoadFunctionPrototype* instr) { 1840 HLoadFunctionPrototype* instr) {
1852 return AssignEnvironment(DefineAsRegister( 1841 return AssignEnvironment(DefineAsRegister(
1853 new (zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); 1842 new (zone()) LLoadFunctionPrototype(UseRegister(instr->function()))));
1854 } 1843 }
1855 1844
1856 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { 1845 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) {
1857 return DefineAsRegister(new (zone()) LLoadRoot); 1846 return DefineAsRegister(new (zone()) LLoadRoot);
1858 } 1847 }
1859 1848
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
2211 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2200 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2212 LOperand* object = UseRegister(instr->object()); 2201 LOperand* object = UseRegister(instr->object());
2213 LOperand* index = UseTempRegister(instr->index()); 2202 LOperand* index = UseTempRegister(instr->index());
2214 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2203 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2215 LInstruction* result = DefineSameAsFirst(load); 2204 LInstruction* result = DefineSameAsFirst(load);
2216 return AssignPointerMap(result); 2205 return AssignPointerMap(result);
2217 } 2206 }
2218 2207
2219 } // namespace internal 2208 } // namespace internal
2220 } // namespace v8 2209 } // 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