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

Side by Side Diff: src/crankshaft/arm/lithium-arm.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/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-arm.h" 5 #include "src/crankshaft/arm/lithium-arm.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/arm/lithium-codegen-arm.h" 9 #include "src/crankshaft/arm/lithium-codegen-arm.h"
10 #include "src/crankshaft/hydrogen-osr.h" 10 #include "src/crankshaft/hydrogen-osr.h"
(...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 return result; 2027 return result;
2028 } 2028 }
2029 2029
2030 2030
2031 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 2031 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
2032 LOperand* obj = UseRegisterAtStart(instr->object()); 2032 LOperand* obj = UseRegisterAtStart(instr->object());
2033 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 2033 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
2034 } 2034 }
2035 2035
2036 2036
2037 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
2038 LOperand* context = UseFixed(instr->context(), cp);
2039 LOperand* object =
2040 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister());
2041 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
2042
2043 LInstruction* result =
2044 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), r0);
2045 return MarkAsCall(result, instr);
2046 }
2047
2048
2049 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 2037 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
2050 HLoadFunctionPrototype* instr) { 2038 HLoadFunctionPrototype* instr) {
2051 return AssignEnvironment(DefineAsRegister( 2039 return AssignEnvironment(DefineAsRegister(
2052 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); 2040 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()))));
2053 } 2041 }
2054 2042
2055 2043
2056 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { 2044 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) {
2057 return DefineAsRegister(new(zone()) LLoadRoot); 2045 return DefineAsRegister(new(zone()) LLoadRoot);
2058 } 2046 }
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
2444 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2432 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2445 LOperand* object = UseRegister(instr->object()); 2433 LOperand* object = UseRegister(instr->object());
2446 LOperand* index = UseTempRegister(instr->index()); 2434 LOperand* index = UseTempRegister(instr->index());
2447 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2435 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2448 LInstruction* result = DefineSameAsFirst(load); 2436 LInstruction* result = DefineSameAsFirst(load);
2449 return AssignPointerMap(result); 2437 return AssignPointerMap(result);
2450 } 2438 }
2451 2439
2452 } // namespace internal 2440 } // namespace internal
2453 } // namespace v8 2441 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-arm.h ('k') | src/crankshaft/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698