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

Side by Side Diff: src/crankshaft/mips/lithium-mips.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/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.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/mips/lithium-mips.h" 5 #include "src/crankshaft/mips/lithium-mips.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 return DefineAsRegister(new(zone()) LConstantE); 1939 return DefineAsRegister(new(zone()) LConstantE);
1940 } else if (r.IsTagged()) { 1940 } else if (r.IsTagged()) {
1941 return DefineAsRegister(new(zone()) LConstantT); 1941 return DefineAsRegister(new(zone()) LConstantT);
1942 } else { 1942 } else {
1943 UNREACHABLE(); 1943 UNREACHABLE();
1944 return NULL; 1944 return NULL;
1945 } 1945 }
1946 } 1946 }
1947 1947
1948 1948
1949 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) {
1950 LOperand* context = UseFixed(instr->context(), cp);
1951 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister());
1952
1953 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector);
1954 return MarkAsCall(DefineFixed(result, v0), instr);
1955 }
1956
1957
1958 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1949 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1959 LOperand* context = UseRegisterAtStart(instr->value()); 1950 LOperand* context = UseRegisterAtStart(instr->value());
1960 LInstruction* result = 1951 LInstruction* result =
1961 DefineAsRegister(new(zone()) LLoadContextSlot(context)); 1952 DefineAsRegister(new(zone()) LLoadContextSlot(context));
1962 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { 1953 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
1963 result = AssignEnvironment(result); 1954 result = AssignEnvironment(result);
1964 } 1955 }
1965 return result; 1956 return result;
1966 } 1957 }
1967 1958
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2402 LOperand* index = UseTempRegister(instr->index()); 2393 LOperand* index = UseTempRegister(instr->index());
2403 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2394 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2404 LInstruction* result = DefineSameAsFirst(load); 2395 LInstruction* result = DefineSameAsFirst(load);
2405 return AssignPointerMap(result); 2396 return AssignPointerMap(result);
2406 } 2397 }
2407 2398
2408 } // namespace internal 2399 } // namespace internal
2409 } // namespace v8 2400 } // namespace v8
2410 2401
2411 #endif // V8_TARGET_ARCH_MIPS 2402 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698