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

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

Issue 300893003: Refactor HType to get rid of various hacks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix compilation. 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/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 "v8.h" 5 #include "v8.h"
6 6
7 #include "lithium-allocator-inl.h" 7 #include "lithium-allocator-inl.h"
8 #include "arm/lithium-arm.h" 8 #include "arm/lithium-arm.h"
9 #include "arm/lithium-codegen-arm.h" 9 #include "arm/lithium-codegen-arm.h"
10 #include "hydrogen-osr.h" 10 #include "hydrogen-osr.h"
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1972 } 1972 }
1973 } 1973 }
1974 UNREACHABLE(); 1974 UNREACHABLE();
1975 return NULL; 1975 return NULL;
1976 } 1976 }
1977 1977
1978 1978
1979 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { 1979 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
1980 LOperand* value = UseRegisterAtStart(instr->value()); 1980 LOperand* value = UseRegisterAtStart(instr->value());
1981 LInstruction* result = new(zone()) LCheckNonSmi(value); 1981 LInstruction* result = new(zone()) LCheckNonSmi(value);
1982 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); 1982 if (!instr->value()->type().IsHeapObject()) {
1983 result = AssignEnvironment(result);
1984 }
1983 return result; 1985 return result;
1984 } 1986 }
1985 1987
1986 1988
1987 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1989 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1988 LOperand* value = UseRegisterAtStart(instr->value()); 1990 LOperand* value = UseRegisterAtStart(instr->value());
1989 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1991 return AssignEnvironment(new(zone()) LCheckSmi(value));
1990 } 1992 }
1991 1993
1992 1994
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 2589
2588 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2590 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2589 LOperand* object = UseRegister(instr->object()); 2591 LOperand* object = UseRegister(instr->object());
2590 LOperand* index = UseTempRegister(instr->index()); 2592 LOperand* index = UseTempRegister(instr->index());
2591 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2593 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2592 LInstruction* result = DefineSameAsFirst(load); 2594 LInstruction* result = DefineSameAsFirst(load);
2593 return AssignPointerMap(result); 2595 return AssignPointerMap(result);
2594 } 2596 }
2595 2597
2596 } } // namespace v8::internal 2598 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698