| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/generic-node-inl.h" |
| 5 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
| 6 | 7 |
| 7 namespace v8 { | 8 namespace v8 { |
| 8 namespace internal { | 9 namespace internal { |
| 9 namespace compiler { | 10 namespace compiler { |
| 10 | 11 |
| 11 const int ScaleFactorMatcher::kMatchedFactors[] = {1, 2, 4, 8}; | 12 const int ScaleFactorMatcher::kMatchedFactors[] = {1, 2, 4, 8}; |
| 12 | 13 |
| 13 | 14 |
| 14 ScaleFactorMatcher::ScaleFactorMatcher(Node* node) | 15 ScaleFactorMatcher::ScaleFactorMatcher(Node* node) |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 95 } |
| 95 if (!base::bits::IsPowerOfTwo64(value)) { | 96 if (!base::bits::IsPowerOfTwo64(value)) { |
| 96 displacement_ = 1; | 97 displacement_ = 1; |
| 97 } | 98 } |
| 98 left_ = left; | 99 left_ = left; |
| 99 } | 100 } |
| 100 | 101 |
| 101 } // namespace compiler | 102 } // namespace compiler |
| 102 } // namespace internal | 103 } // namespace internal |
| 103 } // namespace v8 | 104 } // namespace v8 |
| OLD | NEW |