| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_ | 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_ |
| 6 #define V8_COMPILER_MACHINE_OPERATOR_H_ | 6 #define V8_COMPILER_MACHINE_OPERATOR_H_ |
| 7 | 7 |
| 8 #include "src/base/compiler-specific.h" | 8 #include "src/base/compiler-specific.h" |
| 9 #include "src/base/flags.h" | 9 #include "src/base/flags.h" |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const Operator* placeholder() const { return op_; } | 36 const Operator* placeholder() const { return op_; } |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 bool supported_; | 39 bool supported_; |
| 40 const Operator* const op_; | 40 const Operator* const op_; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 | 43 |
| 44 // A Load needs a MachineType. | 44 // A Load needs a MachineType. |
| 45 typedef MachineType LoadRepresentation; | 45 typedef MachineType LoadRepresentation; |
| 46 typedef LoadRepresentation ProtectedLoadRepresentation; | |
| 47 | 46 |
| 48 LoadRepresentation LoadRepresentationOf(Operator const*); | 47 LoadRepresentation LoadRepresentationOf(Operator const*); |
| 49 | 48 |
| 50 // A Store needs a MachineType and a WriteBarrierKind in order to emit the | 49 // A Store needs a MachineType and a WriteBarrierKind in order to emit the |
| 51 // correct write barrier. | 50 // correct write barrier. |
| 52 class StoreRepresentation final { | 51 class StoreRepresentation final { |
| 53 public: | 52 public: |
| 54 StoreRepresentation(MachineRepresentation representation, | 53 StoreRepresentation(MachineRepresentation representation, |
| 55 WriteBarrierKind write_barrier_kind) | 54 WriteBarrierKind write_barrier_kind) |
| 56 : representation_(representation), | 55 : representation_(representation), |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 const Operator* Simd128Or(); | 607 const Operator* Simd128Or(); |
| 609 const Operator* Simd128Xor(); | 608 const Operator* Simd128Xor(); |
| 610 const Operator* Simd128Not(); | 609 const Operator* Simd128Not(); |
| 611 | 610 |
| 612 // load [base + index] | 611 // load [base + index] |
| 613 const Operator* Load(LoadRepresentation rep); | 612 const Operator* Load(LoadRepresentation rep); |
| 614 const Operator* ProtectedLoad(LoadRepresentation rep); | 613 const Operator* ProtectedLoad(LoadRepresentation rep); |
| 615 | 614 |
| 616 // store [base + index], value | 615 // store [base + index], value |
| 617 const Operator* Store(StoreRepresentation rep); | 616 const Operator* Store(StoreRepresentation rep); |
| 617 const Operator* ProtectedStore(MachineRepresentation rep); |
| 618 | 618 |
| 619 // unaligned load [base + index] | 619 // unaligned load [base + index] |
| 620 const Operator* UnalignedLoad(UnalignedLoadRepresentation rep); | 620 const Operator* UnalignedLoad(UnalignedLoadRepresentation rep); |
| 621 | 621 |
| 622 // unaligned store [base + index], value | 622 // unaligned store [base + index], value |
| 623 const Operator* UnalignedStore(UnalignedStoreRepresentation rep); | 623 const Operator* UnalignedStore(UnalignedStoreRepresentation rep); |
| 624 | 624 |
| 625 const Operator* StackSlot(MachineRepresentation rep); | 625 const Operator* StackSlot(MachineRepresentation rep); |
| 626 | 626 |
| 627 // Access to the machine stack. | 627 // Access to the machine stack. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 }; | 697 }; |
| 698 | 698 |
| 699 | 699 |
| 700 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 700 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 701 | 701 |
| 702 } // namespace compiler | 702 } // namespace compiler |
| 703 } // namespace internal | 703 } // namespace internal |
| 704 } // namespace v8 | 704 } // namespace v8 |
| 705 | 705 |
| 706 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 706 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |