| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_CODE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_CODE_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 V(TruncateFloat64ToFloat32) \ | 143 V(TruncateFloat64ToFloat32) \ |
| 144 V(TruncateFloat64ToWord32) \ | 144 V(TruncateFloat64ToWord32) \ |
| 145 V(TruncateInt64ToInt32) \ | 145 V(TruncateInt64ToInt32) \ |
| 146 V(ChangeFloat32ToFloat64) \ | 146 V(ChangeFloat32ToFloat64) \ |
| 147 V(ChangeFloat64ToUint32) \ | 147 V(ChangeFloat64ToUint32) \ |
| 148 V(ChangeInt32ToFloat64) \ | 148 V(ChangeInt32ToFloat64) \ |
| 149 V(ChangeInt32ToInt64) \ | 149 V(ChangeInt32ToInt64) \ |
| 150 V(ChangeUint32ToFloat64) \ | 150 V(ChangeUint32ToFloat64) \ |
| 151 V(ChangeUint32ToUint64) \ | 151 V(ChangeUint32ToUint64) \ |
| 152 V(RoundFloat64ToInt32) \ | 152 V(RoundFloat64ToInt32) \ |
| 153 V(RoundInt32ToFloat32) \ |
| 153 V(Float64SilenceNaN) \ | 154 V(Float64SilenceNaN) \ |
| 154 V(Float64RoundDown) \ | 155 V(Float64RoundDown) \ |
| 155 V(Float64RoundUp) \ | 156 V(Float64RoundUp) \ |
| 157 V(Float64RoundTiesEven) \ |
| 156 V(Float64RoundTruncate) \ | 158 V(Float64RoundTruncate) \ |
| 157 V(Word32Clz) \ | 159 V(Word32Clz) \ |
| 158 V(Word32BinaryNot) | 160 V(Word32BinaryNot) |
| 159 | 161 |
| 160 // A "public" interface used by components outside of compiler directory to | 162 // A "public" interface used by components outside of compiler directory to |
| 161 // create code objects with TurboFan's backend. This class is mostly a thin shim | 163 // create code objects with TurboFan's backend. This class is mostly a thin shim |
| 162 // around the RawMachineAssembler, and its primary job is to ensure that the | 164 // around the RawMachineAssembler, and its primary job is to ensure that the |
| 163 // innards of the RawMachineAssembler and other compiler implementation details | 165 // innards of the RawMachineAssembler and other compiler implementation details |
| 164 // don't leak outside of the the compiler directory.. | 166 // don't leak outside of the the compiler directory.. |
| 165 // | 167 // |
| (...skipping 20 matching lines...) Expand all Loading... |
| 186 CodeAssembler(Isolate* isolate, Zone* zone, int parameter_count, | 188 CodeAssembler(Isolate* isolate, Zone* zone, int parameter_count, |
| 187 Code::Flags flags, const char* name); | 189 Code::Flags flags, const char* name); |
| 188 | 190 |
| 189 virtual ~CodeAssembler(); | 191 virtual ~CodeAssembler(); |
| 190 | 192 |
| 191 Handle<Code> GenerateCode(); | 193 Handle<Code> GenerateCode(); |
| 192 | 194 |
| 193 bool Is64() const; | 195 bool Is64() const; |
| 194 bool IsFloat64RoundUpSupported() const; | 196 bool IsFloat64RoundUpSupported() const; |
| 195 bool IsFloat64RoundDownSupported() const; | 197 bool IsFloat64RoundDownSupported() const; |
| 198 bool IsFloat64RoundTiesEvenSupported() const; |
| 196 bool IsFloat64RoundTruncateSupported() const; | 199 bool IsFloat64RoundTruncateSupported() const; |
| 197 | 200 |
| 198 class Label; | 201 class Label; |
| 199 class Variable { | 202 class Variable { |
| 200 public: | 203 public: |
| 201 explicit Variable(CodeAssembler* assembler, MachineRepresentation rep); | 204 explicit Variable(CodeAssembler* assembler, MachineRepresentation rep); |
| 202 ~Variable(); | 205 ~Variable(); |
| 203 void Bind(Node* value); | 206 void Bind(Node* value); |
| 204 Node* value() const; | 207 Node* value() const; |
| 205 MachineRepresentation rep() const; | 208 MachineRepresentation rep() const; |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 // Map of variables to the list of value nodes that have been added from each | 524 // Map of variables to the list of value nodes that have been added from each |
| 522 // merge path in their order of merging. | 525 // merge path in their order of merging. |
| 523 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; | 526 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; |
| 524 }; | 527 }; |
| 525 | 528 |
| 526 } // namespace compiler | 529 } // namespace compiler |
| 527 } // namespace internal | 530 } // namespace internal |
| 528 } // namespace v8 | 531 } // namespace v8 |
| 529 | 532 |
| 530 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 533 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
| OLD | NEW |