Chromium Code Reviews| Index: src/hydrogen.cc |
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
| index ce5ad80b11ca44f026650735d637e66effce8d34..5cd0b6c47fcc3193df23fdee8f37283bfa1d572c 100644 |
| --- a/src/hydrogen.cc |
| +++ b/src/hydrogen.cc |
| @@ -8935,6 +8935,7 @@ static bool ShiftAmountsAllowReplaceByRotate(HValue* sa, |
| if (sa != sub->right()) return false; |
| HValue* const32 = sub->left(); |
| if (!const32->IsConstant() || |
| + !HConstant::cast(const32)->HasInteger32Value() || |
| HConstant::cast(const32)->Integer32Value() != 32) { |
|
Sven Panne
2014/03/13 09:36:40
Simplify this brain teaser to
return sub->left()-
|
| return false; |
| } |