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

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

Issue 2115513002: [turbofan] Introduce CheckIf simplified operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« 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 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 941
942 case IrOpcode::kCheckBounds: 942 case IrOpcode::kCheckBounds:
943 CheckValueInputIs(node, 0, Type::Any()); 943 CheckValueInputIs(node, 0, Type::Any());
944 CheckValueInputIs(node, 1, Type::Unsigned31()); 944 CheckValueInputIs(node, 1, Type::Unsigned31());
945 CheckUpperIs(node, Type::Unsigned31()); 945 CheckUpperIs(node, Type::Unsigned31());
946 break; 946 break;
947 case IrOpcode::kCheckNumber: 947 case IrOpcode::kCheckNumber:
948 CheckValueInputIs(node, 0, Type::Any()); 948 CheckValueInputIs(node, 0, Type::Any());
949 CheckUpperIs(node, Type::Number()); 949 CheckUpperIs(node, Type::Number());
950 break; 950 break;
951 case IrOpcode::kCheckIf:
952 CheckValueInputIs(node, 0, Type::Boolean());
953 CheckNotTyped(node);
954 break;
951 case IrOpcode::kCheckTaggedSigned: 955 case IrOpcode::kCheckTaggedSigned:
952 CheckValueInputIs(node, 0, Type::Any()); 956 CheckValueInputIs(node, 0, Type::Any());
953 CheckUpperIs(node, Type::TaggedSigned()); 957 CheckUpperIs(node, Type::TaggedSigned());
954 break; 958 break;
955 case IrOpcode::kCheckTaggedPointer: 959 case IrOpcode::kCheckTaggedPointer:
956 CheckValueInputIs(node, 0, Type::Any()); 960 CheckValueInputIs(node, 0, Type::Any());
957 CheckUpperIs(node, Type::TaggedPointer()); 961 CheckUpperIs(node, Type::TaggedPointer());
958 break; 962 break;
959 963
960 case IrOpcode::kCheckedInt32Add: 964 case IrOpcode::kCheckedInt32Add:
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 replacement->op()->EffectOutputCount() > 0); 1494 replacement->op()->EffectOutputCount() > 0);
1491 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1495 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1492 replacement->opcode() == IrOpcode::kFrameState); 1496 replacement->opcode() == IrOpcode::kFrameState);
1493 } 1497 }
1494 1498
1495 #endif // DEBUG 1499 #endif // DEBUG
1496 1500
1497 } // namespace compiler 1501 } // namespace compiler
1498 } // namespace internal 1502 } // namespace internal
1499 } // namespace v8 1503 } // 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