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

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

Issue 2082523002: [turbofan] Introduce CheckTaggedSigned and CheckTaggedPointer operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile Created 4 years, 6 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') | src/compiler/wasm-compiler.cc » ('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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 // CheckValueInputIs(node, 0, from)); 940 // CheckValueInputIs(node, 0, from));
941 // CheckUpperIs(node, to)); 941 // CheckUpperIs(node, to));
942 break; 942 break;
943 } 943 }
944 944
945 case IrOpcode::kCheckBounds: 945 case IrOpcode::kCheckBounds:
946 CheckValueInputIs(node, 0, Type::Any()); 946 CheckValueInputIs(node, 0, Type::Any());
947 CheckValueInputIs(node, 1, Type::Unsigned31()); 947 CheckValueInputIs(node, 1, Type::Unsigned31());
948 CheckUpperIs(node, Type::Unsigned31()); 948 CheckUpperIs(node, Type::Unsigned31());
949 break; 949 break;
950 case IrOpcode::kCheckTaggedSigned:
951 CheckValueInputIs(node, 0, Type::Any());
952 CheckUpperIs(node, Type::TaggedSigned());
953 break;
954 case IrOpcode::kCheckTaggedPointer:
955 CheckValueInputIs(node, 0, Type::Any());
956 CheckUpperIs(node, Type::TaggedPointer());
957 break;
950 958
951 case IrOpcode::kCheckedUint32ToInt32: 959 case IrOpcode::kCheckedUint32ToInt32:
952 case IrOpcode::kCheckedFloat64ToInt32: 960 case IrOpcode::kCheckedFloat64ToInt32:
953 case IrOpcode::kCheckedTaggedToInt32: 961 case IrOpcode::kCheckedTaggedToInt32:
954 case IrOpcode::kCheckedTaggedToFloat64: 962 case IrOpcode::kCheckedTaggedToFloat64:
955 break; 963 break;
956 964
957 case IrOpcode::kCheckFloat64Hole: 965 case IrOpcode::kCheckFloat64Hole:
958 CheckValueInputIs(node, 0, Type::Number()); 966 CheckValueInputIs(node, 0, Type::Number());
959 CheckUpperIs(node, Type::Number()); 967 CheckUpperIs(node, Type::Number());
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
1478 replacement->op()->EffectOutputCount() > 0); 1486 replacement->op()->EffectOutputCount() > 0);
1479 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1487 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1480 replacement->opcode() == IrOpcode::kFrameState); 1488 replacement->opcode() == IrOpcode::kFrameState);
1481 } 1489 }
1482 1490
1483 #endif // DEBUG 1491 #endif // DEBUG
1484 1492
1485 } // namespace compiler 1493 } // namespace compiler
1486 } // namespace internal 1494 } // namespace internal
1487 } // namespace v8 1495 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698