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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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/ppc/lithium-ppc.h ('k') | src/crankshaft/s390/lithium-codegen-s390.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 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1967 return DefineAsRegister(new (zone()) LConstantE); 1967 return DefineAsRegister(new (zone()) LConstantE);
1968 } else if (r.IsTagged()) { 1968 } else if (r.IsTagged()) {
1969 return DefineAsRegister(new (zone()) LConstantT); 1969 return DefineAsRegister(new (zone()) LConstantT);
1970 } else { 1970 } else {
1971 UNREACHABLE(); 1971 UNREACHABLE();
1972 return NULL; 1972 return NULL;
1973 } 1973 }
1974 } 1974 }
1975 1975
1976 1976
1977 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1978 LOperand* context = UseFixed(instr->context(), cp);
1979 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
1980
1981 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector);
1982 return MarkAsCall(DefineFixed(result, r3), instr);
1983 }
1984
1985
1986 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1977 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1987 LOperand* context = UseRegisterAtStart(instr->value()); 1978 LOperand* context = UseRegisterAtStart(instr->value());
1988 LInstruction* result = 1979 LInstruction* result =
1989 DefineAsRegister(new (zone()) LLoadContextSlot(context)); 1980 DefineAsRegister(new (zone()) LLoadContextSlot(context));
1990 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { 1981 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
1991 result = AssignEnvironment(result); 1982 result = AssignEnvironment(result);
1992 } 1983 }
1993 return result; 1984 return result;
1994 } 1985 }
1995 1986
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
2422 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2413 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2423 LOperand* object = UseRegister(instr->object()); 2414 LOperand* object = UseRegister(instr->object());
2424 LOperand* index = UseTempRegister(instr->index()); 2415 LOperand* index = UseTempRegister(instr->index());
2425 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index); 2416 LLoadFieldByIndex* load = new (zone()) LLoadFieldByIndex(object, index);
2426 LInstruction* result = DefineSameAsFirst(load); 2417 LInstruction* result = DefineSameAsFirst(load);
2427 return AssignPointerMap(result); 2418 return AssignPointerMap(result);
2428 } 2419 }
2429 2420
2430 } // namespace internal 2421 } // namespace internal
2431 } // namespace v8 2422 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.h ('k') | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698