| 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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 // Type is Function. | 514 // Type is Function. |
| 515 CheckUpperIs(node, Type::OtherObject()); | 515 CheckUpperIs(node, Type::OtherObject()); |
| 516 break; | 516 break; |
| 517 case IrOpcode::kJSCreateLiteralArray: | 517 case IrOpcode::kJSCreateLiteralArray: |
| 518 case IrOpcode::kJSCreateLiteralObject: | 518 case IrOpcode::kJSCreateLiteralObject: |
| 519 // Type is OtherObject. | 519 // Type is OtherObject. |
| 520 CheckUpperIs(node, Type::OtherObject()); | 520 CheckUpperIs(node, Type::OtherObject()); |
| 521 break; | 521 break; |
| 522 case IrOpcode::kJSLoadProperty: | 522 case IrOpcode::kJSLoadProperty: |
| 523 case IrOpcode::kJSLoadNamed: | 523 case IrOpcode::kJSLoadNamed: |
| 524 case IrOpcode::kJSLoadGlobal: |
| 524 // Type can be anything. | 525 // Type can be anything. |
| 525 CheckUpperIs(node, Type::Any()); | 526 CheckUpperIs(node, Type::Any()); |
| 526 break; | 527 break; |
| 527 case IrOpcode::kJSStoreProperty: | 528 case IrOpcode::kJSStoreProperty: |
| 528 case IrOpcode::kJSStoreNamed: | 529 case IrOpcode::kJSStoreNamed: |
| 530 case IrOpcode::kJSStoreGlobal: |
| 529 // Type is empty. | 531 // Type is empty. |
| 530 CheckNotTyped(node); | 532 CheckNotTyped(node); |
| 531 break; | 533 break; |
| 532 case IrOpcode::kJSDeleteProperty: | 534 case IrOpcode::kJSDeleteProperty: |
| 533 case IrOpcode::kJSHasProperty: | 535 case IrOpcode::kJSHasProperty: |
| 534 case IrOpcode::kJSInstanceOf: | 536 case IrOpcode::kJSInstanceOf: |
| 535 // Type is Boolean. | 537 // Type is Boolean. |
| 536 CheckUpperIs(node, Type::Boolean()); | 538 CheckUpperIs(node, Type::Boolean()); |
| 537 break; | 539 break; |
| 538 case IrOpcode::kJSTypeOf: | 540 case IrOpcode::kJSTypeOf: |
| (...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 // Check inputs for all nodes in the block. | 1130 // Check inputs for all nodes in the block. |
| 1129 for (size_t i = 0; i < block->NodeCount(); i++) { | 1131 for (size_t i = 0; i < block->NodeCount(); i++) { |
| 1130 Node* node = block->NodeAt(i); | 1132 Node* node = block->NodeAt(i); |
| 1131 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); | 1133 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); |
| 1132 } | 1134 } |
| 1133 } | 1135 } |
| 1134 } | 1136 } |
| 1135 } // namespace compiler | 1137 } // namespace compiler |
| 1136 } // namespace internal | 1138 } // namespace internal |
| 1137 } // namespace v8 | 1139 } // namespace v8 |
| OLD | NEW |