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/machine-operator.h" | 5 #include "src/compiler/machine-operator.h" |
6 | 6 |
7 #include "src/base/lazy-instance.h" | 7 #include "src/base/lazy-instance.h" |
8 #include "src/compiler/opcodes.h" | 8 #include "src/compiler/opcodes.h" |
9 #include "src/compiler/operator.h" | 9 #include "src/compiler/operator.h" |
10 | 10 |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 UNREACHABLE(); | 471 UNREACHABLE(); |
472 return nullptr; | 472 return nullptr; |
473 } | 473 } |
474 | 474 |
475 // On 32 bit platforms we need to get a reference to optional operators of | 475 // On 32 bit platforms we need to get a reference to optional operators of |
476 // 64-bit instructions for later Int64Lowering, even though 32 bit platforms | 476 // 64-bit instructions for later Int64Lowering, even though 32 bit platforms |
477 // don't support the original 64-bit instruction. | 477 // don't support the original 64-bit instruction. |
478 const Operator* MachineOperatorBuilder::Word64PopcntPlaceholder() { | 478 const Operator* MachineOperatorBuilder::Word64PopcntPlaceholder() { |
479 return &cache_.kWord64Popcnt; | 479 return &cache_.kWord64Popcnt; |
480 } | 480 } |
| 481 |
| 482 // On 32 bit platforms we need to get a reference to optional operators of |
| 483 // 64-bit instructions for later Int64Lowering, even though 32 bit platforms |
| 484 // don't support the original 64-bit instruction. |
| 485 const Operator* MachineOperatorBuilder::Word64CtzPlaceholder() { |
| 486 return &cache_.kWord64Ctz; |
| 487 } |
481 } // namespace compiler | 488 } // namespace compiler |
482 } // namespace internal | 489 } // namespace internal |
483 } // namespace v8 | 490 } // namespace v8 |
OLD | NEW |