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

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

Issue 16035008: MIPS: Remove HCheckSmi, LCheckSmi and rename LCheckSmiAndReturn to LCheckSmi. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/mips/lithium-mips.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 // 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 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 info()->MarkAsDeferredCalling(); 1771 info()->MarkAsDeferredCalling();
1772 LOperand* value = UseRegister(instr->value()); 1772 LOperand* value = UseRegister(instr->value());
1773 LNumberUntagD* res = new(zone()) LNumberUntagD(value); 1773 LNumberUntagD* res = new(zone()) LNumberUntagD(value);
1774 return AssignEnvironment(DefineAsRegister(res)); 1774 return AssignEnvironment(DefineAsRegister(res));
1775 } else if (to.IsSmi()) { 1775 } else if (to.IsSmi()) {
1776 HValue* val = instr->value(); 1776 HValue* val = instr->value();
1777 LOperand* value = UseRegister(val); 1777 LOperand* value = UseRegister(val);
1778 if (val->type().IsSmi()) { 1778 if (val->type().IsSmi()) {
1779 return DefineSameAsFirst(new(zone()) LDummyUse(value)); 1779 return DefineSameAsFirst(new(zone()) LDummyUse(value));
1780 } 1780 }
1781 return AssignEnvironment( 1781 return AssignEnvironment(DefineSameAsFirst(new(zone()) LCheckSmi(value)));
1782 DefineSameAsFirst(new(zone()) LCheckSmiAndReturn(value)));
1783 } else { 1782 } else {
1784 ASSERT(to.IsInteger32()); 1783 ASSERT(to.IsInteger32());
1785 LOperand* value = NULL; 1784 LOperand* value = NULL;
1786 LInstruction* res = NULL; 1785 LInstruction* res = NULL;
1787 if (instr->value()->type().IsSmi()) { 1786 if (instr->value()->type().IsSmi()) {
1788 value = UseRegisterAtStart(instr->value()); 1787 value = UseRegisterAtStart(instr->value());
1789 res = DefineAsRegister(new(zone()) LSmiUntag(value, false)); 1788 res = DefineAsRegister(new(zone()) LSmiUntag(value, false));
1790 } else { 1789 } else {
1791 value = UseRegister(instr->value()); 1790 value = UseRegister(instr->value());
1792 LOperand* temp1 = TempRegister(); 1791 LOperand* temp1 = TempRegister();
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 1878
1880 1879
1881 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 1880 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
1882 LUnallocated* temp1 = TempRegister(); 1881 LUnallocated* temp1 = TempRegister();
1883 LOperand* temp2 = TempRegister(); 1882 LOperand* temp2 = TempRegister();
1884 LCheckPrototypeMaps* result = new(zone()) LCheckPrototypeMaps(temp1, temp2); 1883 LCheckPrototypeMaps* result = new(zone()) LCheckPrototypeMaps(temp1, temp2);
1885 return AssignEnvironment(result); 1884 return AssignEnvironment(result);
1886 } 1885 }
1887 1886
1888 1887
1889 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1890 LOperand* value = UseRegisterAtStart(instr->value());
1891 return AssignEnvironment(new(zone()) LCheckSmi(value));
1892 }
1893
1894
1895 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1888 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
1896 LOperand* value = UseRegisterAtStart(instr->value()); 1889 LOperand* value = UseRegisterAtStart(instr->value());
1897 return AssignEnvironment(new(zone()) LCheckFunction(value)); 1890 return AssignEnvironment(new(zone()) LCheckFunction(value));
1898 } 1891 }
1899 1892
1900 1893
1901 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 1894 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
1902 LOperand* value = UseRegisterAtStart(instr->value()); 1895 LOperand* value = UseRegisterAtStart(instr->value());
1903 LInstruction* result = new(zone()) LCheckMaps(value); 1896 LInstruction* result = new(zone()) LCheckMaps(value);
1904 return AssignEnvironment(result); 1897 return AssignEnvironment(result);
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2505 2498
2506 2499
2507 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2500 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2508 LOperand* object = UseRegister(instr->object()); 2501 LOperand* object = UseRegister(instr->object());
2509 LOperand* index = UseRegister(instr->index()); 2502 LOperand* index = UseRegister(instr->index());
2510 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2503 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2511 } 2504 }
2512 2505
2513 2506
2514 } } // namespace v8::internal 2507 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698