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