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

Side by Side Diff: src/compiler/verifier.cc

Issue 2722483003: [turbofan] Introduce dedicated ObjectIsNaN operator. (Closed)
Patch Set: Created 3 years, 9 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/verifier.h" 5 #include "src/compiler/verifier.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <sstream> 10 #include <sstream>
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 CheckTypeIs(node, Type::SignedSmall()); 946 CheckTypeIs(node, Type::SignedSmall());
947 break; 947 break;
948 948
949 case IrOpcode::kReferenceEqual: 949 case IrOpcode::kReferenceEqual:
950 // (Unique, Any) -> Boolean and 950 // (Unique, Any) -> Boolean and
951 // (Any, Unique) -> Boolean 951 // (Any, Unique) -> Boolean
952 CheckTypeIs(node, Type::Boolean()); 952 CheckTypeIs(node, Type::Boolean());
953 break; 953 break;
954 954
955 case IrOpcode::kObjectIsDetectableCallable: 955 case IrOpcode::kObjectIsDetectableCallable:
956 case IrOpcode::kObjectIsNaN:
956 case IrOpcode::kObjectIsNonCallable: 957 case IrOpcode::kObjectIsNonCallable:
957 case IrOpcode::kObjectIsNumber: 958 case IrOpcode::kObjectIsNumber:
958 case IrOpcode::kObjectIsReceiver: 959 case IrOpcode::kObjectIsReceiver:
959 case IrOpcode::kObjectIsSmi: 960 case IrOpcode::kObjectIsSmi:
960 case IrOpcode::kObjectIsString: 961 case IrOpcode::kObjectIsString:
961 case IrOpcode::kObjectIsUndetectable: 962 case IrOpcode::kObjectIsUndetectable:
962 case IrOpcode::kArrayBufferWasNeutered: 963 case IrOpcode::kArrayBufferWasNeutered:
963 CheckValueInputIs(node, 0, Type::Any()); 964 CheckValueInputIs(node, 0, Type::Any());
964 CheckTypeIs(node, Type::Boolean()); 965 CheckTypeIs(node, Type::Boolean());
965 break; 966 break;
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 replacement->op()->EffectOutputCount() > 0); 1713 replacement->op()->EffectOutputCount() > 0);
1713 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1714 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1714 replacement->opcode() == IrOpcode::kFrameState); 1715 replacement->opcode() == IrOpcode::kFrameState);
1715 } 1716 }
1716 1717
1717 #endif // DEBUG 1718 #endif // DEBUG
1718 1719
1719 } // namespace compiler 1720 } // namespace compiler
1720 } // namespace internal 1721 } // namespace internal
1721 } // namespace v8 1722 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698