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

Side by Side Diff: src/x64/lithium-x64.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/x64/lithium-codegen-x64.cc ('k') | test/cctest/cctest.gyp » ('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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "lithium-allocator-inl.h" 9 #include "lithium-allocator-inl.h"
10 #include "x64/lithium-x64.h" 10 #include "x64/lithium-x64.h"
(...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 } 1911 }
1912 } 1912 }
1913 UNREACHABLE(); 1913 UNREACHABLE();
1914 return NULL; 1914 return NULL;
1915 } 1915 }
1916 1916
1917 1917
1918 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { 1918 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) {
1919 LOperand* value = UseRegisterAtStart(instr->value()); 1919 LOperand* value = UseRegisterAtStart(instr->value());
1920 LInstruction* result = new(zone()) LCheckNonSmi(value); 1920 LInstruction* result = new(zone()) LCheckNonSmi(value);
1921 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); 1921 if (!instr->value()->type().IsHeapObject()) {
1922 result = AssignEnvironment(result);
1923 }
1922 return result; 1924 return result;
1923 } 1925 }
1924 1926
1925 1927
1926 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1928 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1927 LOperand* value = UseRegisterAtStart(instr->value()); 1929 LOperand* value = UseRegisterAtStart(instr->value());
1928 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1930 return AssignEnvironment(new(zone()) LCheckSmi(value));
1929 } 1931 }
1930 1932
1931 1933
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
2593 LOperand* index = UseTempRegister(instr->index()); 2595 LOperand* index = UseTempRegister(instr->index());
2594 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2596 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2595 LInstruction* result = DefineSameAsFirst(load); 2597 LInstruction* result = DefineSameAsFirst(load);
2596 return AssignPointerMap(result); 2598 return AssignPointerMap(result);
2597 } 2599 }
2598 2600
2599 2601
2600 } } // namespace v8::internal 2602 } } // namespace v8::internal
2601 2603
2602 #endif // V8_TARGET_ARCH_X64 2604 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/cctest/cctest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698