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

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

Issue 307903002: X87: Refactor HType to get rid of various hacks. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | Annotate | Revision Log
« no previous file with comments | « src/x87/lithium-codegen-x87.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 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "x87/lithium-x87.h" 10 #include "x87/lithium-x87.h"
(...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after
1951 } 1951 }
1952 } 1952 }
1953 UNREACHABLE(); 1953 UNREACHABLE();
1954 return NULL; 1954 return NULL;
1955 } 1955 }
1956 1956
1957 1957
1958 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { 1958 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
1959 LOperand* value = UseAtStart(instr->value()); 1959 LOperand* value = UseAtStart(instr->value());
1960 LInstruction* result = new(zone()) LCheckNonSmi(value); 1960 LInstruction* result = new(zone()) LCheckNonSmi(value);
1961 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); 1961 if (!instr->value()->type().IsHeapObject()) {
1962 result = AssignEnvironment(result);
1963 }
1962 return result; 1964 return result;
1963 } 1965 }
1964 1966
1965 1967
1966 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1968 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1967 LOperand* value = UseRegisterAtStart(instr->value()); 1969 LOperand* value = UseRegisterAtStart(instr->value());
1968 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1970 return AssignEnvironment(new(zone()) LCheckSmi(value));
1969 } 1971 }
1970 1972
1971 1973
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
2648 LOperand* index = UseTempRegister(instr->index()); 2650 LOperand* index = UseTempRegister(instr->index());
2649 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2651 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2650 LInstruction* result = DefineSameAsFirst(load); 2652 LInstruction* result = DefineSameAsFirst(load);
2651 return AssignPointerMap(result); 2653 return AssignPointerMap(result);
2652 } 2654 }
2653 2655
2654 2656
2655 } } // namespace v8::internal 2657 } } // namespace v8::internal
2656 2658
2657 #endif // V8_TARGET_ARCH_X87 2659 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698