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

Side by Side Diff: src/ia32/lithium-ia32.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 | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "ia32/lithium-ia32.h" 10 #include "ia32/lithium-ia32.h"
(...skipping 1958 matching lines...) Expand 10 before | Expand all | Expand 10 after
1969 } 1969 }
1970 } 1970 }
1971 UNREACHABLE(); 1971 UNREACHABLE();
1972 return NULL; 1972 return NULL;
1973 } 1973 }
1974 1974
1975 1975
1976 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { 1976 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
1977 LOperand* value = UseAtStart(instr->value()); 1977 LOperand* value = UseAtStart(instr->value());
1978 LInstruction* result = new(zone()) LCheckNonSmi(value); 1978 LInstruction* result = new(zone()) LCheckNonSmi(value);
1979 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); 1979 if (!instr->value()->type().IsHeapObject()) {
1980 result = AssignEnvironment(result);
1981 }
1980 return result; 1982 return result;
1981 } 1983 }
1982 1984
1983 1985
1984 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1986 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1985 LOperand* value = UseRegisterAtStart(instr->value()); 1987 LOperand* value = UseRegisterAtStart(instr->value());
1986 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1988 return AssignEnvironment(new(zone()) LCheckSmi(value));
1987 } 1989 }
1988 1990
1989 1991
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
2663 LOperand* index = UseTempRegister(instr->index()); 2665 LOperand* index = UseTempRegister(instr->index());
2664 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2666 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2665 LInstruction* result = DefineSameAsFirst(load); 2667 LInstruction* result = DefineSameAsFirst(load);
2666 return AssignPointerMap(result); 2668 return AssignPointerMap(result);
2667 } 2669 }
2668 2670
2669 2671
2670 } } // namespace v8::internal 2672 } } // namespace v8::internal
2671 2673
2672 #endif // V8_TARGET_ARCH_IA32 2674 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698