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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 case IrOpcode::kJSInstanceOf: | 537 case IrOpcode::kJSInstanceOf: |
538 // Type is Boolean. | 538 // Type is Boolean. |
539 CheckUpperIs(node, Type::Boolean()); | 539 CheckUpperIs(node, Type::Boolean()); |
540 break; | 540 break; |
541 case IrOpcode::kJSTypeOf: | 541 case IrOpcode::kJSTypeOf: |
542 // Type is String. | 542 // Type is String. |
543 CheckUpperIs(node, Type::String()); | 543 CheckUpperIs(node, Type::String()); |
544 break; | 544 break; |
545 | 545 |
546 case IrOpcode::kJSLoadContext: | 546 case IrOpcode::kJSLoadContext: |
547 case IrOpcode::kJSLoadDynamicGlobal: | 547 case IrOpcode::kJSLoadDynamic: |
548 case IrOpcode::kJSLoadDynamicContext: | |
549 // Type can be anything. | 548 // Type can be anything. |
550 CheckUpperIs(node, Type::Any()); | 549 CheckUpperIs(node, Type::Any()); |
551 break; | 550 break; |
552 case IrOpcode::kJSStoreContext: | 551 case IrOpcode::kJSStoreContext: |
553 // Type is empty. | 552 // Type is empty. |
554 CheckNotTyped(node); | 553 CheckNotTyped(node); |
555 break; | 554 break; |
556 case IrOpcode::kJSCreateFunctionContext: | 555 case IrOpcode::kJSCreateFunctionContext: |
557 case IrOpcode::kJSCreateCatchContext: | 556 case IrOpcode::kJSCreateCatchContext: |
558 case IrOpcode::kJSCreateWithContext: | 557 case IrOpcode::kJSCreateWithContext: |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1223 replacement->op()->EffectOutputCount() > 0); | 1222 replacement->op()->EffectOutputCount() > 0); |
1224 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1223 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1225 replacement->opcode() == IrOpcode::kFrameState); | 1224 replacement->opcode() == IrOpcode::kFrameState); |
1226 } | 1225 } |
1227 | 1226 |
1228 #endif // DEBUG | 1227 #endif // DEBUG |
1229 | 1228 |
1230 } // namespace compiler | 1229 } // namespace compiler |
1231 } // namespace internal | 1230 } // namespace internal |
1232 } // namespace v8 | 1231 } // namespace v8 |
OLD | NEW |