| OLD | NEW |
| 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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 581 CheckUpperIs(node, Type::Any()); | 581 CheckUpperIs(node, Type::Any()); |
| 582 break; | 582 break; |
| 583 case IrOpcode::kJSStoreContext: | 583 case IrOpcode::kJSStoreContext: |
| 584 // Type is empty. | 584 // Type is empty. |
| 585 CheckNotTyped(node); | 585 CheckNotTyped(node); |
| 586 break; | 586 break; |
| 587 case IrOpcode::kJSCreateFunctionContext: | 587 case IrOpcode::kJSCreateFunctionContext: |
| 588 case IrOpcode::kJSCreateCatchContext: | 588 case IrOpcode::kJSCreateCatchContext: |
| 589 case IrOpcode::kJSCreateWithContext: | 589 case IrOpcode::kJSCreateWithContext: |
| 590 case IrOpcode::kJSCreateBlockContext: | 590 case IrOpcode::kJSCreateBlockContext: |
| 591 case IrOpcode::kJSCreateModuleContext: | |
| 592 case IrOpcode::kJSCreateScriptContext: { | 591 case IrOpcode::kJSCreateScriptContext: { |
| 593 // Type is Context, and operand is Internal. | 592 // Type is Context, and operand is Internal. |
| 594 Node* context = NodeProperties::GetContextInput(node); | 593 Node* context = NodeProperties::GetContextInput(node); |
| 595 // TODO(rossberg): This should really be Is(Internal), but the typer | 594 // TODO(rossberg): This should really be Is(Internal), but the typer |
| 596 // currently can't do backwards propagation. | 595 // currently can't do backwards propagation. |
| 597 CheckUpperMaybe(context, Type::Internal()); | 596 CheckUpperMaybe(context, Type::Internal()); |
| 598 if (typing == TYPED) CHECK(NodeProperties::GetType(node)->IsContext()); | 597 if (typing == TYPED) CHECK(NodeProperties::GetType(node)->IsContext()); |
| 599 break; | 598 break; |
| 600 } | 599 } |
| 601 | 600 |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 replacement->op()->EffectOutputCount() > 0); | 1485 replacement->op()->EffectOutputCount() > 0); |
| 1487 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1486 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1488 replacement->opcode() == IrOpcode::kFrameState); | 1487 replacement->opcode() == IrOpcode::kFrameState); |
| 1489 } | 1488 } |
| 1490 | 1489 |
| 1491 #endif // DEBUG | 1490 #endif // DEBUG |
| 1492 | 1491 |
| 1493 } // namespace compiler | 1492 } // namespace compiler |
| 1494 } // namespace internal | 1493 } // namespace internal |
| 1495 } // namespace v8 | 1494 } // namespace v8 |
| OLD | NEW |