Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: src/compiler/code-assembler.cc

Issue 2785773002: [turbofan] introduce Int32/64AbsWithOverflow optional operator (Closed)
Patch Set: add base impl Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698