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

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

Issue 66783007: Merged r17441 into 3.21 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.21
Patch Set: Created 7 years, 1 month 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') | test/mjsunit/regress/regress-crbug-309623.js » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after
1892 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); 1892 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result)));
1893 } else if (val->HasRange() && val->range()->IsInSmiRange()) { 1893 } else if (val->HasRange() && val->range()->IsInSmiRange()) {
1894 return DefineSameAsFirst(new(zone()) LSmiTag(value)); 1894 return DefineSameAsFirst(new(zone()) LSmiTag(value));
1895 } else { 1895 } else {
1896 LNumberTagI* result = new(zone()) LNumberTagI(value); 1896 LNumberTagI* result = new(zone()) LNumberTagI(value);
1897 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); 1897 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result)));
1898 } 1898 }
1899 } else if (to.IsSmi()) { 1899 } else if (to.IsSmi()) {
1900 HValue* val = instr->value(); 1900 HValue* val = instr->value();
1901 LOperand* value = UseRegister(val); 1901 LOperand* value = UseRegister(val);
1902 LInstruction* result = 1902 LInstruction* result = NULL;
1903 DefineAsRegister(new(zone()) LInteger32ToSmi(value)); 1903 if (val->CheckFlag(HInstruction::kUint32)) {
1904 if (val->HasRange() && val->range()->IsInSmiRange()) { 1904 result = DefineAsRegister(new(zone()) LUint32ToSmi(value));
1905 return result; 1905 if (val->HasRange() && val->range()->IsInSmiRange() &&
1906 val->range()->upper() != kMaxInt) {
1907 return result;
1908 }
1909 } else {
1910 result = DefineAsRegister(new(zone()) LInteger32ToSmi(value));
1911 if (val->HasRange() && val->range()->IsInSmiRange()) {
1912 return result;
1913 }
1906 } 1914 }
1907 return AssignEnvironment(result); 1915 return AssignEnvironment(result);
1908 } else { 1916 } else {
1909 if (instr->value()->CheckFlag(HInstruction::kUint32)) { 1917 if (instr->value()->CheckFlag(HInstruction::kUint32)) {
1910 LOperand* temp = FixedTemp(xmm1); 1918 LOperand* temp = FixedTemp(xmm1);
1911 return DefineAsRegister( 1919 return DefineAsRegister(
1912 new(zone()) LUint32ToDouble(UseRegister(instr->value()), temp)); 1920 new(zone()) LUint32ToDouble(UseRegister(instr->value()), temp));
1913 } else { 1921 } else {
1914 ASSERT(to.IsDouble()); 1922 ASSERT(to.IsDouble());
1915 LOperand* value = Use(instr->value()); 1923 LOperand* value = Use(instr->value());
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
2548 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2556 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2549 LOperand* object = UseRegister(instr->object()); 2557 LOperand* object = UseRegister(instr->object());
2550 LOperand* index = UseTempRegister(instr->index()); 2558 LOperand* index = UseTempRegister(instr->index());
2551 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2559 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2552 } 2560 }
2553 2561
2554 2562
2555 } } // namespace v8::internal 2563 } } // namespace v8::internal
2556 2564
2557 #endif // V8_TARGET_ARCH_X64 2565 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/lithium-x64.h ('k') | test/mjsunit/regress/regress-crbug-309623.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698