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

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

Issue 72003003: Merged r17451 into 3.20 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.20
Patch Set: Rebase 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/mips/lithium-mips.h ('k') | src/version.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 // 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 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); 1883 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result)));
1884 } else if (val->HasRange() && val->range()->IsInSmiRange()) { 1884 } else if (val->HasRange() && val->range()->IsInSmiRange()) {
1885 return DefineAsRegister(new(zone()) LSmiTag(value)); 1885 return DefineAsRegister(new(zone()) LSmiTag(value));
1886 } else { 1886 } else {
1887 LNumberTagI* result = new(zone()) LNumberTagI(value); 1887 LNumberTagI* result = new(zone()) LNumberTagI(value);
1888 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); 1888 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
1889 } 1889 }
1890 } else if (to.IsSmi()) { 1890 } else if (to.IsSmi()) {
1891 HValue* val = instr->value(); 1891 HValue* val = instr->value();
1892 LOperand* value = UseRegister(val); 1892 LOperand* value = UseRegister(val);
1893 LInstruction* result = 1893 LInstruction* result = val->CheckFlag(HInstruction::kUint32)
1894 DefineSameAsFirst(new(zone()) LInteger32ToSmi(value)); 1894 ? DefineSameAsFirst(new(zone()) LUint32ToSmi(value))
1895 : DefineSameAsFirst(new(zone()) LInteger32ToSmi(value));
1895 if (val->HasRange() && val->range()->IsInSmiRange()) { 1896 if (val->HasRange() && val->range()->IsInSmiRange()) {
1896 return result; 1897 return result;
1897 } 1898 }
1898 return AssignEnvironment(result); 1899 return AssignEnvironment(result);
1899 } else { 1900 } else {
1900 ASSERT(to.IsDouble()); 1901 ASSERT(to.IsDouble());
1901 if (instr->value()->CheckFlag(HInstruction::kUint32)) { 1902 if (instr->value()->CheckFlag(HInstruction::kUint32)) {
1902 return DefineAsRegister( 1903 return DefineAsRegister(
1903 new(zone()) LUint32ToDouble(UseRegister(instr->value()))); 1904 new(zone()) LUint32ToDouble(UseRegister(instr->value())));
1904 } else { 1905 } else {
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
2513 2514
2514 2515
2515 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2516 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2516 LOperand* object = UseRegister(instr->object()); 2517 LOperand* object = UseRegister(instr->object());
2517 LOperand* index = UseRegister(instr->index()); 2518 LOperand* index = UseRegister(instr->index());
2518 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2519 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2519 } 2520 }
2520 2521
2521 2522
2522 } } // namespace v8::internal 2523 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698