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

Side by Side Diff: src/compiler/code-assembler.cc

Issue 2425723002: [turbofan] Fixes CodeAssembler::Word32Shr'r rhs operand type. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-assembler.h" 5 #include "src/compiler/code-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/compiler/graph.h" 10 #include "src/compiler/graph.h"
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 return (shift != 0) ? raw_assembler_->WordShl(value, IntPtrConstant(shift)) 209 return (shift != 0) ? raw_assembler_->WordShl(value, IntPtrConstant(shift))
210 : value; 210 : value;
211 } 211 }
212 212
213 Node* CodeAssembler::WordShr(Node* value, int shift) { 213 Node* CodeAssembler::WordShr(Node* value, int shift) {
214 return (shift != 0) ? raw_assembler_->WordShr(value, IntPtrConstant(shift)) 214 return (shift != 0) ? raw_assembler_->WordShr(value, IntPtrConstant(shift))
215 : value; 215 : value;
216 } 216 }
217 217
218 Node* CodeAssembler::Word32Shr(Node* value, int shift) { 218 Node* CodeAssembler::Word32Shr(Node* value, int shift) {
219 return (shift != 0) ? raw_assembler_->Word32Shr(value, IntPtrConstant(shift)) 219 return (shift != 0) ? raw_assembler_->Word32Shr(value, Int32Constant(shift))
220 : value; 220 : value;
221 } 221 }
222 222
223 Node* CodeAssembler::ChangeUint32ToWord(Node* value) { 223 Node* CodeAssembler::ChangeUint32ToWord(Node* value) {
224 if (raw_assembler_->machine()->Is64()) { 224 if (raw_assembler_->machine()->Is64()) {
225 value = raw_assembler_->ChangeUint32ToUint64(value); 225 value = raw_assembler_->ChangeUint32ToUint64(value);
226 } 226 }
227 return value; 227 return value;
228 } 228 }
229 229
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 } 1117 }
1118 } 1118 }
1119 } 1119 }
1120 1120
1121 bound_ = true; 1121 bound_ = true;
1122 } 1122 }
1123 1123
1124 } // namespace compiler 1124 } // namespace compiler
1125 } // namespace internal 1125 } // namespace internal
1126 } // namespace v8 1126 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698