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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
552 case IrOpcode::kJSInstanceOf: | 552 case IrOpcode::kJSInstanceOf: |
553 // Type is Boolean. | 553 // Type is Boolean. |
554 CheckUpperIs(node, Type::Boolean()); | 554 CheckUpperIs(node, Type::Boolean()); |
555 break; | 555 break; |
556 case IrOpcode::kJSTypeOf: | 556 case IrOpcode::kJSTypeOf: |
557 // Type is String. | 557 // Type is String. |
558 CheckUpperIs(node, Type::String()); | 558 CheckUpperIs(node, Type::String()); |
559 break; | 559 break; |
560 | 560 |
561 case IrOpcode::kJSLoadContext: | 561 case IrOpcode::kJSLoadContext: |
562 case IrOpcode::kJSLoadDynamic: | |
563 // Type can be anything. | 562 // Type can be anything. |
564 CheckUpperIs(node, Type::Any()); | 563 CheckUpperIs(node, Type::Any()); |
565 break; | 564 break; |
566 case IrOpcode::kJSStoreContext: | 565 case IrOpcode::kJSStoreContext: |
567 // Type is empty. | 566 // Type is empty. |
568 CheckNotTyped(node); | 567 CheckNotTyped(node); |
569 break; | 568 break; |
570 case IrOpcode::kJSCreateFunctionContext: | 569 case IrOpcode::kJSCreateFunctionContext: |
571 case IrOpcode::kJSCreateCatchContext: | 570 case IrOpcode::kJSCreateCatchContext: |
572 case IrOpcode::kJSCreateWithContext: | 571 case IrOpcode::kJSCreateWithContext: |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 replacement->op()->EffectOutputCount() > 0); | 1270 replacement->op()->EffectOutputCount() > 0); |
1272 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1271 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1273 replacement->opcode() == IrOpcode::kFrameState); | 1272 replacement->opcode() == IrOpcode::kFrameState); |
1274 } | 1273 } |
1275 | 1274 |
1276 #endif // DEBUG | 1275 #endif // DEBUG |
1277 | 1276 |
1278 } // namespace compiler | 1277 } // namespace compiler |
1279 } // namespace internal | 1278 } // namespace internal |
1280 } // namespace v8 | 1279 } // namespace v8 |
OLD | NEW |