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/machine-operator.h

Issue 2177483002: [turbofan] Handle impossible types (Type::None()) in the backend. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix?? Created 4 years, 5 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
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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 const Operator* TruncateFloat32ToUint32(); 289 const Operator* TruncateFloat32ToUint32();
290 const Operator* TryTruncateFloat32ToInt64(); 290 const Operator* TryTruncateFloat32ToInt64();
291 const Operator* TryTruncateFloat64ToInt64(); 291 const Operator* TryTruncateFloat64ToInt64();
292 const Operator* TryTruncateFloat32ToUint64(); 292 const Operator* TryTruncateFloat32ToUint64();
293 const Operator* TryTruncateFloat64ToUint64(); 293 const Operator* TryTruncateFloat64ToUint64();
294 const Operator* ChangeInt32ToFloat64(); 294 const Operator* ChangeInt32ToFloat64();
295 const Operator* ChangeInt32ToInt64(); 295 const Operator* ChangeInt32ToInt64();
296 const Operator* ChangeUint32ToFloat64(); 296 const Operator* ChangeUint32ToFloat64();
297 const Operator* ChangeUint32ToUint64(); 297 const Operator* ChangeUint32ToUint64();
298 298
299 // These are changes from impossible values (for example a smi-checked
300 // string). They can safely emit an abort instruction, which should
301 // never be reached.
302 const Operator* ImpossibleToWord32();
303 const Operator* ImpossibleToWord64();
304 const Operator* ImpossibleToFloat32();
305 const Operator* ImpossibleToFloat64();
306 const Operator* ImpossibleToTagged();
307 const Operator* ImpossibleToBit();
308
299 // These operators truncate or round numbers, both changing the representation 309 // These operators truncate or round numbers, both changing the representation
300 // of the number and mapping multiple input values onto the same output value. 310 // of the number and mapping multiple input values onto the same output value.
301 const Operator* TruncateFloat64ToFloat32(); 311 const Operator* TruncateFloat64ToFloat32();
302 const Operator* TruncateInt64ToInt32(); 312 const Operator* TruncateInt64ToInt32();
303 const Operator* RoundFloat64ToInt32(); 313 const Operator* RoundFloat64ToInt32();
304 const Operator* RoundInt32ToFloat32(); 314 const Operator* RoundInt32ToFloat32();
305 const Operator* RoundInt64ToFloat32(); 315 const Operator* RoundInt64ToFloat32();
306 const Operator* RoundInt64ToFloat64(); 316 const Operator* RoundInt64ToFloat64();
307 const Operator* RoundUint32ToFloat32(); 317 const Operator* RoundUint32ToFloat32();
308 const Operator* RoundUint64ToFloat32(); 318 const Operator* RoundUint64ToFloat32();
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 }; 687 };
678 688
679 689
680 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) 690 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags)
681 691
682 } // namespace compiler 692 } // namespace compiler
683 } // namespace internal 693 } // namespace internal
684 } // namespace v8 694 } // namespace v8
685 695
686 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 696 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698