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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 CheckUpperIs(node, Type::OtherObject()); | 511 CheckUpperIs(node, Type::OtherObject()); |
512 break; | 512 break; |
513 case IrOpcode::kJSCreateArray: | 513 case IrOpcode::kJSCreateArray: |
514 // Type is OtherObject. | 514 // Type is OtherObject. |
515 CheckUpperIs(node, Type::OtherObject()); | 515 CheckUpperIs(node, Type::OtherObject()); |
516 break; | 516 break; |
517 case IrOpcode::kJSCreateClosure: | 517 case IrOpcode::kJSCreateClosure: |
518 // Type is Function. | 518 // Type is Function. |
519 CheckUpperIs(node, Type::Function()); | 519 CheckUpperIs(node, Type::Function()); |
520 break; | 520 break; |
| 521 case IrOpcode::kJSCreateIterResultObject: |
| 522 // Type is OtherObject. |
| 523 CheckUpperIs(node, Type::OtherObject()); |
| 524 break; |
521 case IrOpcode::kJSCreateLiteralArray: | 525 case IrOpcode::kJSCreateLiteralArray: |
522 case IrOpcode::kJSCreateLiteralObject: | 526 case IrOpcode::kJSCreateLiteralObject: |
523 case IrOpcode::kJSCreateLiteralRegExp: | 527 case IrOpcode::kJSCreateLiteralRegExp: |
524 // Type is OtherObject. | 528 // Type is OtherObject. |
525 CheckUpperIs(node, Type::OtherObject()); | 529 CheckUpperIs(node, Type::OtherObject()); |
526 break; | 530 break; |
527 case IrOpcode::kJSLoadProperty: | 531 case IrOpcode::kJSLoadProperty: |
528 case IrOpcode::kJSLoadNamed: | 532 case IrOpcode::kJSLoadNamed: |
529 case IrOpcode::kJSLoadGlobal: | 533 case IrOpcode::kJSLoadGlobal: |
530 // Type can be anything. | 534 // Type can be anything. |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 replacement->op()->EffectOutputCount() > 0); | 1256 replacement->op()->EffectOutputCount() > 0); |
1253 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1257 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1254 replacement->opcode() == IrOpcode::kFrameState); | 1258 replacement->opcode() == IrOpcode::kFrameState); |
1255 } | 1259 } |
1256 | 1260 |
1257 #endif // DEBUG | 1261 #endif // DEBUG |
1258 | 1262 |
1259 } // namespace compiler | 1263 } // namespace compiler |
1260 } // namespace internal | 1264 } // namespace internal |
1261 } // namespace v8 | 1265 } // namespace v8 |
OLD | NEW |