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

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

Issue 2622783002: [crankshaft] Remove dead Variable hole-checking code (Closed)
Patch Set: Update golden files Created 3 years, 11 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
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 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after
1915 return DefineAsRegister(new(zone()) LConstantT); 1915 return DefineAsRegister(new(zone()) LConstantT);
1916 } else { 1916 } else {
1917 UNREACHABLE(); 1917 UNREACHABLE();
1918 return NULL; 1918 return NULL;
1919 } 1919 }
1920 } 1920 }
1921 1921
1922 1922
1923 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { 1923 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) {
1924 LOperand* context = UseRegisterAtStart(instr->value()); 1924 LOperand* context = UseRegisterAtStart(instr->value());
1925 LInstruction* result = 1925 return DefineAsRegister(new (zone()) LLoadContextSlot(context));
1926 DefineAsRegister(new(zone()) LLoadContextSlot(context));
1927 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
1928 result = AssignEnvironment(result);
1929 }
1930 return result;
1931 } 1926 }
1932 1927
1933 1928
1934 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) { 1929 LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
1935 LOperand* context; 1930 LOperand* context;
1936 LOperand* value; 1931 LOperand* value;
1937 if (instr->NeedsWriteBarrier()) { 1932 if (instr->NeedsWriteBarrier()) {
1938 context = UseTempRegister(instr->context()); 1933 context = UseTempRegister(instr->context());
1939 value = UseTempRegister(instr->value()); 1934 value = UseTempRegister(instr->value());
1940 } else { 1935 } else {
1941 context = UseRegister(instr->context()); 1936 context = UseRegister(instr->context());
1942 value = UseRegister(instr->value()); 1937 value = UseRegister(instr->value());
1943 } 1938 }
1944 LInstruction* result = new(zone()) LStoreContextSlot(context, value); 1939 return new (zone()) LStoreContextSlot(context, value);
1945 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) {
1946 result = AssignEnvironment(result);
1947 }
1948 return result;
1949 } 1940 }
1950 1941
1951 1942
1952 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { 1943 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
1953 LOperand* obj = UseRegisterAtStart(instr->object()); 1944 LOperand* obj = UseRegisterAtStart(instr->object());
1954 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); 1945 return DefineAsRegister(new(zone()) LLoadNamedField(obj));
1955 } 1946 }
1956 1947
1957 1948
1958 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( 1949 LInstruction* LChunkBuilder::DoLoadFunctionPrototype(
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
2340 LOperand* index = UseTempRegister(instr->index()); 2331 LOperand* index = UseTempRegister(instr->index());
2341 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2332 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2342 LInstruction* result = DefineSameAsFirst(load); 2333 LInstruction* result = DefineSameAsFirst(load);
2343 return AssignPointerMap(result); 2334 return AssignPointerMap(result);
2344 } 2335 }
2345 2336
2346 } // namespace internal 2337 } // namespace internal
2347 } // namespace v8 2338 } // namespace v8
2348 2339
2349 #endif // V8_TARGET_ARCH_MIPS 2340 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698