| 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/compiler/machine-type.h" | 8 #include "src/compiler/machine-type.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 const Operator* Float64Equal(); | 137 const Operator* Float64Equal(); |
| 138 const Operator* Float64LessThan(); | 138 const Operator* Float64LessThan(); |
| 139 const Operator* Float64LessThanOrEqual(); | 139 const Operator* Float64LessThanOrEqual(); |
| 140 | 140 |
| 141 // load [base + index] | 141 // load [base + index] |
| 142 const Operator* Load(LoadRepresentation rep); | 142 const Operator* Load(LoadRepresentation rep); |
| 143 | 143 |
| 144 // store [base + index], value | 144 // store [base + index], value |
| 145 const Operator* Store(StoreRepresentation rep); | 145 const Operator* Store(StoreRepresentation rep); |
| 146 | 146 |
| 147 // Access to the machine stack. |
| 148 const Operator* LoadStackPointer(); |
| 149 |
| 147 // Target machine word-size assumed by this builder. | 150 // Target machine word-size assumed by this builder. |
| 148 bool Is32() const { return word() == kRepWord32; } | 151 bool Is32() const { return word() == kRepWord32; } |
| 149 bool Is64() const { return word() == kRepWord64; } | 152 bool Is64() const { return word() == kRepWord64; } |
| 150 MachineType word() const { return word_; } | 153 MachineType word() const { return word_; } |
| 151 | 154 |
| 152 // Pseudo operators that translate to 32/64-bit operators depending on the | 155 // Pseudo operators that translate to 32/64-bit operators depending on the |
| 153 // word-size of the target machine assumed by this builder. | 156 // word-size of the target machine assumed by this builder. |
| 154 #define PSEUDO_OP_LIST(V) \ | 157 #define PSEUDO_OP_LIST(V) \ |
| 155 V(Word, And) \ | 158 V(Word, And) \ |
| 156 V(Word, Or) \ | 159 V(Word, Or) \ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 181 private: | 184 private: |
| 182 const MachineOperatorBuilderImpl& impl_; | 185 const MachineOperatorBuilderImpl& impl_; |
| 183 const MachineType word_; | 186 const MachineType word_; |
| 184 }; | 187 }; |
| 185 | 188 |
| 186 } // namespace compiler | 189 } // namespace compiler |
| 187 } // namespace internal | 190 } // namespace internal |
| 188 } // namespace v8 | 191 } // namespace v8 |
| 189 | 192 |
| 190 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 193 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |