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

Side by Side Diff: src/compiler/machine-operator.h

Issue 1544743004: [turbofan] Add Int64(Add|Sub)WithOverflow support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add truncation to the int64-sub-with-overflow-branch test Created 4 years, 12 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/instruction-selector.cc ('k') | src/compiler/machine-operator.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 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/flags.h" 8 #include "src/base/flags.h"
9 #include "src/machine-type.h" 9 #include "src/machine-type.h"
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 const Operator* Int32LessThanOrEqual(); 185 const Operator* Int32LessThanOrEqual();
186 const Operator* Uint32Div(); 186 const Operator* Uint32Div();
187 const Operator* Uint32LessThan(); 187 const Operator* Uint32LessThan();
188 const Operator* Uint32LessThanOrEqual(); 188 const Operator* Uint32LessThanOrEqual();
189 const Operator* Uint32Mod(); 189 const Operator* Uint32Mod();
190 const Operator* Uint32MulHigh(); 190 const Operator* Uint32MulHigh();
191 bool Int32DivIsSafe() const { return flags_ & kInt32DivIsSafe; } 191 bool Int32DivIsSafe() const { return flags_ & kInt32DivIsSafe; }
192 bool Uint32DivIsSafe() const { return flags_ & kUint32DivIsSafe; } 192 bool Uint32DivIsSafe() const { return flags_ & kUint32DivIsSafe; }
193 193
194 const Operator* Int64Add(); 194 const Operator* Int64Add();
195 const Operator* Int64AddWithOverflow();
195 const Operator* Int64Sub(); 196 const Operator* Int64Sub();
197 const Operator* Int64SubWithOverflow();
196 const Operator* Int64Mul(); 198 const Operator* Int64Mul();
197 const Operator* Int64Div(); 199 const Operator* Int64Div();
198 const Operator* Int64Mod(); 200 const Operator* Int64Mod();
199 const Operator* Int64LessThan(); 201 const Operator* Int64LessThan();
200 const Operator* Int64LessThanOrEqual(); 202 const Operator* Int64LessThanOrEqual();
201 const Operator* Uint64Div(); 203 const Operator* Uint64Div();
202 const Operator* Uint64LessThan(); 204 const Operator* Uint64LessThan();
203 const Operator* Uint64LessThanOrEqual(); 205 const Operator* Uint64LessThanOrEqual();
204 const Operator* Uint64Mod(); 206 const Operator* Uint64Mod();
205 207
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 }; 355 };
354 356
355 357
356 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) 358 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags)
357 359
358 } // namespace compiler 360 } // namespace compiler
359 } // namespace internal 361 } // namespace internal
360 } // namespace v8 362 } // namespace v8
361 363
362 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 364 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698