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

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

Issue 2802113003: [turbofan] Introduce a SpeculativeToNumber operator. (Closed)
Patch Set: Paint it green! Created 3 years, 8 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') | no next file » | 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 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 // Number -> Signed32 907 // Number -> Signed32
908 CheckValueInputIs(node, 0, Type::Number()); 908 CheckValueInputIs(node, 0, Type::Number());
909 CheckTypeIs(node, Type::Signed32()); 909 CheckTypeIs(node, Type::Signed32());
910 break; 910 break;
911 case IrOpcode::kNumberToUint32: 911 case IrOpcode::kNumberToUint32:
912 case IrOpcode::kNumberToUint8Clamped: 912 case IrOpcode::kNumberToUint8Clamped:
913 // Number -> Unsigned32 913 // Number -> Unsigned32
914 CheckValueInputIs(node, 0, Type::Number()); 914 CheckValueInputIs(node, 0, Type::Number());
915 CheckTypeIs(node, Type::Unsigned32()); 915 CheckTypeIs(node, Type::Unsigned32());
916 break; 916 break;
917 case IrOpcode::kSpeculativeToNumber:
918 // Any -> Number
919 CheckValueInputIs(node, 0, Type::Any());
920 CheckTypeIs(node, Type::Number());
921 break;
917 case IrOpcode::kPlainPrimitiveToNumber: 922 case IrOpcode::kPlainPrimitiveToNumber:
918 // PlainPrimitive -> Number 923 // PlainPrimitive -> Number
919 CheckValueInputIs(node, 0, Type::PlainPrimitive()); 924 CheckValueInputIs(node, 0, Type::PlainPrimitive());
920 CheckTypeIs(node, Type::Number()); 925 CheckTypeIs(node, Type::Number());
921 break; 926 break;
922 case IrOpcode::kPlainPrimitiveToWord32: 927 case IrOpcode::kPlainPrimitiveToWord32:
923 // PlainPrimitive -> Integral32 928 // PlainPrimitive -> Integral32
924 CheckValueInputIs(node, 0, Type::PlainPrimitive()); 929 CheckValueInputIs(node, 0, Type::PlainPrimitive());
925 CheckTypeIs(node, Type::Integral32()); 930 CheckTypeIs(node, Type::Integral32());
926 break; 931 break;
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1750 replacement->op()->EffectOutputCount() > 0); 1755 replacement->op()->EffectOutputCount() > 0);
1751 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1756 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1752 replacement->opcode() == IrOpcode::kFrameState); 1757 replacement->opcode() == IrOpcode::kFrameState);
1753 } 1758 }
1754 1759
1755 #endif // DEBUG 1760 #endif // DEBUG
1756 1761
1757 } // namespace compiler 1762 } // namespace compiler
1758 } // namespace internal 1763 } // namespace internal
1759 } // namespace v8 1764 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698