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

Side by Side Diff: src/x64/lithium-x64.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/token.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 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 LInstruction* LChunkBuilder::DoSar(HSar* instr) { 1117 LInstruction* LChunkBuilder::DoSar(HSar* instr) {
1118 return DoShift(Token::SAR, instr); 1118 return DoShift(Token::SAR, instr);
1119 } 1119 }
1120 1120
1121 1121
1122 LInstruction* LChunkBuilder::DoShl(HShl* instr) { 1122 LInstruction* LChunkBuilder::DoShl(HShl* instr) {
1123 return DoShift(Token::SHL, instr); 1123 return DoShift(Token::SHL, instr);
1124 } 1124 }
1125 1125
1126 1126
1127 LInstruction* LChunkBuilder::DoRor(HRor* instr) {
1128 UNIMPLEMENTED();
1129 return NULL;
1130 }
1131
1132
1127 LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) { 1133 LInstruction* LChunkBuilder::DoBitwise(HBitwise* instr) {
1128 if (instr->representation().IsInteger32()) { 1134 if (instr->representation().IsInteger32()) {
1129 ASSERT(instr->left()->representation().IsInteger32()); 1135 ASSERT(instr->left()->representation().IsInteger32());
1130 ASSERT(instr->right()->representation().IsInteger32()); 1136 ASSERT(instr->right()->representation().IsInteger32());
1131 1137
1132 LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand()); 1138 LOperand* left = UseRegisterAtStart(instr->LeastConstantOperand());
1133 LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand()); 1139 LOperand* right = UseOrConstantAtStart(instr->MostConstantOperand());
1134 return DefineSameAsFirst(new(zone()) LBitI(left, right)); 1140 return DefineSameAsFirst(new(zone()) LBitI(left, right));
1135 } else { 1141 } else {
1136 ASSERT(instr->representation().IsTagged()); 1142 ASSERT(instr->representation().IsTagged());
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2320 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2315 LOperand* object = UseRegister(instr->object()); 2321 LOperand* object = UseRegister(instr->object());
2316 LOperand* index = UseTempRegister(instr->index()); 2322 LOperand* index = UseTempRegister(instr->index());
2317 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2323 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2318 } 2324 }
2319 2325
2320 2326
2321 } } // namespace v8::internal 2327 } } // namespace v8::internal
2322 2328
2323 #endif // V8_TARGET_ARCH_X64 2329 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/token.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698