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

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

Issue 2722483003: [turbofan] Introduce dedicated ObjectIsNaN operator. (Closed)
Patch Set: Use GetUpperBound. Add test cases. 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
« no previous file with comments | « src/compiler/typer.cc ('k') | test/mjsunit/number-isnan-opt.js » ('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 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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 CheckTypeIs(node, Type::SignedSmall()); 947 CheckTypeIs(node, Type::SignedSmall());
948 break; 948 break;
949 949
950 case IrOpcode::kReferenceEqual: 950 case IrOpcode::kReferenceEqual:
951 // (Unique, Any) -> Boolean and 951 // (Unique, Any) -> Boolean and
952 // (Any, Unique) -> Boolean 952 // (Any, Unique) -> Boolean
953 CheckTypeIs(node, Type::Boolean()); 953 CheckTypeIs(node, Type::Boolean());
954 break; 954 break;
955 955
956 case IrOpcode::kObjectIsDetectableCallable: 956 case IrOpcode::kObjectIsDetectableCallable:
957 case IrOpcode::kObjectIsNaN:
957 case IrOpcode::kObjectIsNonCallable: 958 case IrOpcode::kObjectIsNonCallable:
958 case IrOpcode::kObjectIsNumber: 959 case IrOpcode::kObjectIsNumber:
959 case IrOpcode::kObjectIsReceiver: 960 case IrOpcode::kObjectIsReceiver:
960 case IrOpcode::kObjectIsSmi: 961 case IrOpcode::kObjectIsSmi:
961 case IrOpcode::kObjectIsString: 962 case IrOpcode::kObjectIsString:
962 case IrOpcode::kObjectIsUndetectable: 963 case IrOpcode::kObjectIsUndetectable:
963 case IrOpcode::kArrayBufferWasNeutered: 964 case IrOpcode::kArrayBufferWasNeutered:
964 CheckValueInputIs(node, 0, Type::Any()); 965 CheckValueInputIs(node, 0, Type::Any());
965 CheckTypeIs(node, Type::Boolean()); 966 CheckTypeIs(node, Type::Boolean());
966 break; 967 break;
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 replacement->op()->EffectOutputCount() > 0); 1723 replacement->op()->EffectOutputCount() > 0);
1723 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1724 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1724 replacement->opcode() == IrOpcode::kFrameState); 1725 replacement->opcode() == IrOpcode::kFrameState);
1725 } 1726 }
1726 1727
1727 #endif // DEBUG 1728 #endif // DEBUG
1728 1729
1729 } // namespace compiler 1730 } // namespace compiler
1730 } // namespace internal 1731 } // namespace internal
1731 } // namespace v8 1732 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | test/mjsunit/number-isnan-opt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698