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

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

Issue 263123002: Update DoNumberTagI to support x32 port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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-x64.h ('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_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 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1873 LOperand* value = UseRegister(val); 1873 LOperand* value = UseRegister(val);
1874 return DefineAsRegister(new(zone()) LSmiTag(value)); 1874 return DefineAsRegister(new(zone()) LSmiTag(value));
1875 } else if (val->CheckFlag(HInstruction::kUint32)) { 1875 } else if (val->CheckFlag(HInstruction::kUint32)) {
1876 LOperand* value = UseRegister(val); 1876 LOperand* value = UseRegister(val);
1877 LOperand* temp1 = TempRegister(); 1877 LOperand* temp1 = TempRegister();
1878 LOperand* temp2 = FixedTemp(xmm1); 1878 LOperand* temp2 = FixedTemp(xmm1);
1879 LNumberTagU* result = new(zone()) LNumberTagU(value, temp1, temp2); 1879 LNumberTagU* result = new(zone()) LNumberTagU(value, temp1, temp2);
1880 return AssignPointerMap(DefineSameAsFirst(result)); 1880 return AssignPointerMap(DefineSameAsFirst(result));
1881 } else { 1881 } else {
1882 LOperand* value = UseRegister(val); 1882 LOperand* value = UseRegister(val);
1883 LNumberTagI* result = new(zone()) LNumberTagI(value); 1883 LOperand* temp1 = SmiValuesAre32Bits() ? NULL : TempRegister();
1884 LOperand* temp2 = SmiValuesAre32Bits() ? NULL : FixedTemp(xmm1);
1885 LNumberTagI* result = new(zone()) LNumberTagI(value, temp1, temp2);
1884 return AssignPointerMap(DefineSameAsFirst(result)); 1886 return AssignPointerMap(DefineSameAsFirst(result));
1885 } 1887 }
1886 } else if (to.IsSmi()) { 1888 } else if (to.IsSmi()) {
1887 LOperand* value = UseRegister(val); 1889 LOperand* value = UseRegister(val);
1888 LInstruction* result = DefineAsRegister(new(zone()) LSmiTag(value)); 1890 LInstruction* result = DefineAsRegister(new(zone()) LSmiTag(value));
1889 if (instr->CheckFlag(HValue::kCanOverflow)) { 1891 if (instr->CheckFlag(HValue::kCanOverflow)) {
1890 result = AssignEnvironment(result); 1892 result = AssignEnvironment(result);
1891 } 1893 }
1892 return result; 1894 return result;
1893 } else { 1895 } else {
(...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
2588 LOperand* index = UseTempRegister(instr->index()); 2590 LOperand* index = UseTempRegister(instr->index());
2589 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); 2591 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index);
2590 LInstruction* result = DefineSameAsFirst(load); 2592 LInstruction* result = DefineSameAsFirst(load);
2591 return AssignPointerMap(result); 2593 return AssignPointerMap(result);
2592 } 2594 }
2593 2595
2594 2596
2595 } } // namespace v8::internal 2597 } } // namespace v8::internal
2596 2598
2597 #endif // V8_TARGET_ARCH_X64 2599 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698