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

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

Issue 11293140: MIPS: Add rotate-right instruction to hydrogen and use it instead of bitwise operations of the form… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on r12963 Created 8 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-codegen-mips.cc ('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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 const char* LArithmeticT::Mnemonic() const { 170 const char* LArithmeticT::Mnemonic() const {
171 switch (op()) { 171 switch (op()) {
172 case Token::ADD: return "add-t"; 172 case Token::ADD: return "add-t";
173 case Token::SUB: return "sub-t"; 173 case Token::SUB: return "sub-t";
174 case Token::MUL: return "mul-t"; 174 case Token::MUL: return "mul-t";
175 case Token::MOD: return "mod-t"; 175 case Token::MOD: return "mod-t";
176 case Token::DIV: return "div-t"; 176 case Token::DIV: return "div-t";
177 case Token::BIT_AND: return "bit-and-t"; 177 case Token::BIT_AND: return "bit-and-t";
178 case Token::BIT_OR: return "bit-or-t"; 178 case Token::BIT_OR: return "bit-or-t";
179 case Token::BIT_XOR: return "bit-xor-t"; 179 case Token::BIT_XOR: return "bit-xor-t";
180 case Token::ROR: return "ror-t";
180 case Token::SHL: return "sll-t"; 181 case Token::SHL: return "sll-t";
181 case Token::SAR: return "sra-t"; 182 case Token::SAR: return "sra-t";
182 case Token::SHR: return "srl-t"; 183 case Token::SHR: return "srl-t";
183 default: 184 default:
184 UNREACHABLE(); 185 UNREACHABLE();
185 return NULL; 186 return NULL;
186 } 187 }
187 } 188 }
188 189
189 190
(...skipping 2018 matching lines...) Expand 10 before | Expand all | Expand 10 after
2208 2209
2209 2210
2210 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2211 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2211 LOperand* object = UseRegister(instr->object()); 2212 LOperand* object = UseRegister(instr->object());
2212 LOperand* index = UseRegister(instr->index()); 2213 LOperand* index = UseRegister(instr->index());
2213 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2214 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2214 } 2215 }
2215 2216
2216 2217
2217 } } // namespace v8::internal 2218 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698