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

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

Issue 301023004: MIPS: Refactor HType to get rid of various hacks. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 6 years, 6 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/mips/lithium-codegen-mips.cc ('k') | no next file » | 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 "v8.h" 5 #include "v8.h"
6 6
7 #include "lithium-allocator-inl.h" 7 #include "lithium-allocator-inl.h"
8 #include "mips/lithium-mips.h" 8 #include "mips/lithium-mips.h"
9 #include "mips/lithium-codegen-mips.h" 9 #include "mips/lithium-codegen-mips.h"
10 #include "hydrogen-osr.h" 10 #include "hydrogen-osr.h"
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after
1918 } 1918 }
1919 } 1919 }
1920 UNREACHABLE(); 1920 UNREACHABLE();
1921 return NULL; 1921 return NULL;
1922 } 1922 }
1923 1923
1924 1924
1925 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { 1925 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
1926 LOperand* value = UseRegisterAtStart(instr->value()); 1926 LOperand* value = UseRegisterAtStart(instr->value());
1927 LInstruction* result = new(zone()) LCheckNonSmi(value); 1927 LInstruction* result = new(zone()) LCheckNonSmi(value);
1928 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); 1928 if (!instr->value()->type().IsHeapObject()) {
1929 result = AssignEnvironment(result);
1930 }
1929 return result; 1931 return result;
1930 } 1932 }
1931 1933
1932 1934
1933 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1935 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1934 LOperand* value = UseRegisterAtStart(instr->value()); 1936 LOperand* value = UseRegisterAtStart(instr->value());
1935 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1937 return AssignEnvironment(new(zone()) LCheckSmi(value));
1936 } 1938 }
1937 1939
1938 1940
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
2534 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2536 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2535 LOperand* object = UseRegister(instr->object()); 2537 LOperand* object = UseRegister(instr->object());
2536 LOperand* index = UseTempRegister(instr->index()); 2538 LOperand* index = UseTempRegister(instr->index());
2537 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2539 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2538 LInstruction* result = DefineSameAsFirst(load); 2540 LInstruction* result = DefineSameAsFirst(load);
2539 return AssignPointerMap(result); 2541 return AssignPointerMap(result);
2540 } 2542 }
2541 2543
2542 2544
2543 } } // namespace v8::internal 2545 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698