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

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

Issue 10984057: Replace a set of Hydrogen instructions with rotate instructions on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 2 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/hydrogen-instructions.h ('k') | src/token.h » ('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 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 LInstruction* LChunkBuilder::DoSar(HSar* instr) { 1177 LInstruction* LChunkBuilder::DoSar(HSar* instr) {
1178 return DoShift(Token::SAR, instr); 1178 return DoShift(Token::SAR, instr);
1179 } 1179 }
1180 1180
1181 1181
1182 LInstruction* LChunkBuilder::DoShl(HShl* instr) { 1182 LInstruction* LChunkBuilder::DoShl(HShl* instr) {
1183 return DoShift(Token::SHL, instr); 1183 return DoShift(Token::SHL, instr);
1184 } 1184 }
1185 1185
1186 1186
1187 LInstruction* LChunkBuilder::DoRor(HRor* instr) {
1188 UNIMPLEMENTED();
1189 return NULL;
1190 }
1191
1192
1187 LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) { 1193 LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) {
1188 if (instr->representation().IsInteger32()) { 1194 if (instr->representation().IsInteger32()) {
1189 ASSERT(instr->left()->representation().IsInteger32()); 1195 ASSERT(instr->left()->representation().IsInteger32());
1190 ASSERT(instr->right()->representation().IsInteger32()); 1196 ASSERT(instr->right()->representation().IsInteger32());
1191 1197
1192 LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand()); 1198 LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand());
1193 LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand()); 1199 LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand());
1194 return DefineSameAsFirst(new(zone()) LBitI(left, right)); 1200 return DefineSameAsFirst(new(zone()) LBitI(left, right));
1195 } else { 1201 } else {
1196 ASSERT(instr->representation().IsTagged()); 1202 ASSERT(instr->representation().IsTagged());
(...skipping 1236 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2439 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2434 LOperand* object = UseRegister(instr->object()); 2440 LOperand* object = UseRegister(instr->object());
2435 LOperand* index = UseTempRegister(instr->index()); 2441 LOperand* index = UseTempRegister(instr->index());
2436 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2442 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2437 } 2443 }
2438 2444
2439 2445
2440 } } // namespace v8::internal 2446 } } // namespace v8::internal
2441 2447
2442 #endif // V8_TARGET_ARCH_IA32 2448 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/token.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698