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 #include "src/compiler/code-assembler.h" | 5 #include "src/compiler/code-assembler.h" |
6 | 6 |
7 #include <ostream> | 7 #include <ostream> |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } | 158 } |
159 | 159 |
160 bool CodeAssembler::IsFloat64RoundTiesEvenSupported() const { | 160 bool CodeAssembler::IsFloat64RoundTiesEvenSupported() const { |
161 return raw_assembler()->machine()->Float64RoundTiesEven().IsSupported(); | 161 return raw_assembler()->machine()->Float64RoundTiesEven().IsSupported(); |
162 } | 162 } |
163 | 163 |
164 bool CodeAssembler::IsFloat64RoundTruncateSupported() const { | 164 bool CodeAssembler::IsFloat64RoundTruncateSupported() const { |
165 return raw_assembler()->machine()->Float64RoundTruncate().IsSupported(); | 165 return raw_assembler()->machine()->Float64RoundTruncate().IsSupported(); |
166 } | 166 } |
167 | 167 |
| 168 bool CodeAssembler::IsInt32AbsWithOverflowSupported() const { |
| 169 return raw_assembler()->machine()->Int32AbsWithOverflow().IsSupported(); |
| 170 } |
| 171 |
| 172 bool CodeAssembler::IsInt64AbsWithOverflowSupported() const { |
| 173 return raw_assembler()->machine()->Int64AbsWithOverflow().IsSupported(); |
| 174 } |
| 175 |
| 176 bool CodeAssembler::IsIntPtrAbsWithOverflowSupported() const { |
| 177 return Is64() ? IsInt64AbsWithOverflowSupported() |
| 178 : IsInt32AbsWithOverflowSupported(); |
| 179 } |
| 180 |
168 Node* CodeAssembler::Int32Constant(int32_t value) { | 181 Node* CodeAssembler::Int32Constant(int32_t value) { |
169 return raw_assembler()->Int32Constant(value); | 182 return raw_assembler()->Int32Constant(value); |
170 } | 183 } |
171 | 184 |
172 Node* CodeAssembler::Int64Constant(int64_t value) { | 185 Node* CodeAssembler::Int64Constant(int64_t value) { |
173 return raw_assembler()->Int64Constant(value); | 186 return raw_assembler()->Int64Constant(value); |
174 } | 187 } |
175 | 188 |
176 Node* CodeAssembler::IntPtrConstant(intptr_t value) { | 189 Node* CodeAssembler::IntPtrConstant(intptr_t value) { |
177 return raw_assembler()->IntPtrConstant(value); | 190 return raw_assembler()->IntPtrConstant(value); |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 } | 897 } |
885 } | 898 } |
886 } | 899 } |
887 | 900 |
888 bound_ = true; | 901 bound_ = true; |
889 } | 902 } |
890 | 903 |
891 } // namespace compiler | 904 } // namespace compiler |
892 } // namespace internal | 905 } // namespace internal |
893 } // namespace v8 | 906 } // namespace v8 |
OLD | NEW |