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 <deque> | 7 #include <deque> |
8 #include <queue> | 8 #include <queue> |
9 #include <sstream> | 9 #include <sstream> |
10 #include <string> | 10 #include <string> |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 break; | 453 break; |
454 case IrOpcode::kJSStoreContext: | 454 case IrOpcode::kJSStoreContext: |
455 // Type is empty. | 455 // Type is empty. |
456 CheckNotTyped(node); | 456 CheckNotTyped(node); |
457 break; | 457 break; |
458 case IrOpcode::kJSCreateFunctionContext: | 458 case IrOpcode::kJSCreateFunctionContext: |
459 case IrOpcode::kJSCreateCatchContext: | 459 case IrOpcode::kJSCreateCatchContext: |
460 case IrOpcode::kJSCreateWithContext: | 460 case IrOpcode::kJSCreateWithContext: |
461 case IrOpcode::kJSCreateBlockContext: | 461 case IrOpcode::kJSCreateBlockContext: |
462 case IrOpcode::kJSCreateModuleContext: | 462 case IrOpcode::kJSCreateModuleContext: |
463 case IrOpcode::kJSCreateGlobalContext: { | 463 case IrOpcode::kJSCreateScriptContext: { |
464 // Type is Context, and operand is Internal. | 464 // Type is Context, and operand is Internal. |
465 Node* context = NodeProperties::GetContextInput(node); | 465 Node* context = NodeProperties::GetContextInput(node); |
466 // TODO(rossberg): This should really be Is(Internal), but the typer | 466 // TODO(rossberg): This should really be Is(Internal), but the typer |
467 // currently can't do backwards propagation. | 467 // currently can't do backwards propagation. |
468 CheckUpperMaybe(context, Type::Internal()); | 468 CheckUpperMaybe(context, Type::Internal()); |
469 if (typing == TYPED) CHECK(bounds(node).upper->IsContext()); | 469 if (typing == TYPED) CHECK(bounds(node).upper->IsContext()); |
470 break; | 470 break; |
471 } | 471 } |
472 | 472 |
473 case IrOpcode::kJSCallConstruct: | 473 case IrOpcode::kJSCallConstruct: |
(...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 // Check inputs for all nodes in the block. | 971 // Check inputs for all nodes in the block. |
972 for (size_t i = 0; i < block->NodeCount(); i++) { | 972 for (size_t i = 0; i < block->NodeCount(); i++) { |
973 Node* node = block->NodeAt(i); | 973 Node* node = block->NodeAt(i); |
974 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); | 974 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); |
975 } | 975 } |
976 } | 976 } |
977 } | 977 } |
978 } | 978 } |
979 } | 979 } |
980 } // namespace v8::internal::compiler | 980 } // namespace v8::internal::compiler |
OLD | NEW |