| Index: src/compiler/node-properties.cc
|
| diff --git a/src/compiler/node-properties.cc b/src/compiler/node-properties.cc
|
| index cc3a07d7e3616867d44729ad9d97aa96e48c0484..2e1e1bde8e83ef491ea1a7320b2b7e2429b237b7 100644
|
| --- a/src/compiler/node-properties.cc
|
| +++ b/src/compiler/node-properties.cc
|
| @@ -312,6 +312,20 @@ void NodeProperties::CollectControlProjections(Node* node, Node** projections,
|
| #endif
|
| }
|
|
|
| +// static
|
| +bool NodeProperties::IsSame(Node* a, Node* b) {
|
| + for (;;) {
|
| + if (a->opcode() == IrOpcode::kCheckHeapObject) {
|
| + a = GetValueInput(a, 0);
|
| + continue;
|
| + }
|
| + if (b->opcode() == IrOpcode::kCheckHeapObject) {
|
| + b = GetValueInput(b, 0);
|
| + continue;
|
| + }
|
| + return a == b;
|
| + }
|
| +}
|
|
|
| // static
|
| MaybeHandle<Context> NodeProperties::GetSpecializationContext(
|
|
|