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