| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 case IrOpcode::kJSInstanceOf: | 524 case IrOpcode::kJSInstanceOf: |
| 525 // Type is Boolean. | 525 // Type is Boolean. |
| 526 CheckUpperIs(node, Type::Boolean()); | 526 CheckUpperIs(node, Type::Boolean()); |
| 527 break; | 527 break; |
| 528 case IrOpcode::kJSTypeOf: | 528 case IrOpcode::kJSTypeOf: |
| 529 // Type is String. | 529 // Type is String. |
| 530 CheckUpperIs(node, Type::String()); | 530 CheckUpperIs(node, Type::String()); |
| 531 break; | 531 break; |
| 532 | 532 |
| 533 case IrOpcode::kJSLoadContext: | 533 case IrOpcode::kJSLoadContext: |
| 534 case IrOpcode::kJSLoadDynamicGlobal: |
| 535 case IrOpcode::kJSLoadDynamicContext: |
| 534 // Type can be anything. | 536 // Type can be anything. |
| 535 CheckUpperIs(node, Type::Any()); | 537 CheckUpperIs(node, Type::Any()); |
| 536 break; | 538 break; |
| 537 case IrOpcode::kJSStoreContext: | 539 case IrOpcode::kJSStoreContext: |
| 538 // Type is empty. | 540 // Type is empty. |
| 539 CheckNotTyped(node); | 541 CheckNotTyped(node); |
| 540 break; | 542 break; |
| 541 case IrOpcode::kJSCreateFunctionContext: | 543 case IrOpcode::kJSCreateFunctionContext: |
| 542 case IrOpcode::kJSCreateCatchContext: | 544 case IrOpcode::kJSCreateCatchContext: |
| 543 case IrOpcode::kJSCreateWithContext: | 545 case IrOpcode::kJSCreateWithContext: |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 // Check inputs for all nodes in the block. | 1104 // Check inputs for all nodes in the block. |
| 1103 for (size_t i = 0; i < block->NodeCount(); i++) { | 1105 for (size_t i = 0; i < block->NodeCount(); i++) { |
| 1104 Node* node = block->NodeAt(i); | 1106 Node* node = block->NodeAt(i); |
| 1105 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); | 1107 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); |
| 1106 } | 1108 } |
| 1107 } | 1109 } |
| 1108 } | 1110 } |
| 1109 } // namespace compiler | 1111 } // namespace compiler |
| 1110 } // namespace internal | 1112 } // namespace internal |
| 1111 } // namespace v8 | 1113 } // namespace v8 |
| OLD | NEW |