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

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

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, 4 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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/machine-operator.h" 5 #include "src/compiler/machine-operator.h"
6 6
7 #include "src/base/lazy-instance.h" 7 #include "src/base/lazy-instance.h"
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 V(RoundFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \ 128 V(RoundFloat64ToInt32, Operator::kNoProperties, 1, 0, 1) \
129 V(RoundInt32ToFloat32, Operator::kNoProperties, 1, 0, 1) \ 129 V(RoundInt32ToFloat32, Operator::kNoProperties, 1, 0, 1) \
130 V(RoundInt64ToFloat32, Operator::kNoProperties, 1, 0, 1) \ 130 V(RoundInt64ToFloat32, Operator::kNoProperties, 1, 0, 1) \
131 V(RoundInt64ToFloat64, Operator::kNoProperties, 1, 0, 1) \ 131 V(RoundInt64ToFloat64, Operator::kNoProperties, 1, 0, 1) \
132 V(RoundUint32ToFloat32, Operator::kNoProperties, 1, 0, 1) \ 132 V(RoundUint32ToFloat32, Operator::kNoProperties, 1, 0, 1) \
133 V(RoundUint64ToFloat32, Operator::kNoProperties, 1, 0, 1) \ 133 V(RoundUint64ToFloat32, Operator::kNoProperties, 1, 0, 1) \
134 V(RoundUint64ToFloat64, Operator::kNoProperties, 1, 0, 1) \ 134 V(RoundUint64ToFloat64, Operator::kNoProperties, 1, 0, 1) \
135 V(ChangeInt32ToInt64, Operator::kNoProperties, 1, 0, 1) \ 135 V(ChangeInt32ToInt64, Operator::kNoProperties, 1, 0, 1) \
136 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 0, 1) \ 136 V(ChangeUint32ToFloat64, Operator::kNoProperties, 1, 0, 1) \
137 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 0, 1) \ 137 V(ChangeUint32ToUint64, Operator::kNoProperties, 1, 0, 1) \
138 V(ImpossibleToWord32, Operator::kNoProperties, 1, 0, 1) \
139 V(ImpossibleToWord64, Operator::kNoProperties, 1, 0, 1) \
140 V(ImpossibleToFloat32, Operator::kNoProperties, 1, 0, 1) \
141 V(ImpossibleToFloat64, Operator::kNoProperties, 1, 0, 1) \
142 V(ImpossibleToTagged, Operator::kNoProperties, 1, 0, 1) \
143 V(ImpossibleToBit, Operator::kNoProperties, 1, 0, 1) \
138 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 0, 1) \ 144 V(TruncateFloat64ToFloat32, Operator::kNoProperties, 1, 0, 1) \
139 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 0, 1) \ 145 V(TruncateInt64ToInt32, Operator::kNoProperties, 1, 0, 1) \
140 V(BitcastFloat32ToInt32, Operator::kNoProperties, 1, 0, 1) \ 146 V(BitcastFloat32ToInt32, Operator::kNoProperties, 1, 0, 1) \
141 V(BitcastFloat64ToInt64, Operator::kNoProperties, 1, 0, 1) \ 147 V(BitcastFloat64ToInt64, Operator::kNoProperties, 1, 0, 1) \
142 V(BitcastInt32ToFloat32, Operator::kNoProperties, 1, 0, 1) \ 148 V(BitcastInt32ToFloat32, Operator::kNoProperties, 1, 0, 1) \
143 V(BitcastInt64ToFloat64, Operator::kNoProperties, 1, 0, 1) \ 149 V(BitcastInt64ToFloat64, Operator::kNoProperties, 1, 0, 1) \
144 V(Float32Abs, Operator::kNoProperties, 1, 0, 1) \ 150 V(Float32Abs, Operator::kNoProperties, 1, 0, 1) \
145 V(Float32Add, Operator::kCommutative, 2, 0, 1) \ 151 V(Float32Add, Operator::kCommutative, 2, 0, 1) \
146 V(Float32Sub, Operator::kNoProperties, 2, 0, 1) \ 152 V(Float32Sub, Operator::kNoProperties, 2, 0, 1) \
147 V(Float32SubPreserveNan, Operator::kNoProperties, 2, 0, 1) \ 153 V(Float32SubPreserveNan, Operator::kNoProperties, 2, 0, 1) \
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 } 727 }
722 ATOMIC_REPRESENTATION_LIST(STORE) 728 ATOMIC_REPRESENTATION_LIST(STORE)
723 #undef STORE 729 #undef STORE
724 UNREACHABLE(); 730 UNREACHABLE();
725 return nullptr; 731 return nullptr;
726 } 732 }
727 733
728 } // namespace compiler 734 } // namespace compiler
729 } // namespace internal 735 } // namespace internal
730 } // namespace v8 736 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698