| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 CheckUpperIs(node, Type::Internal()); | 343 CheckUpperIs(node, Type::Internal()); |
| 344 break; | 344 break; |
| 345 case IrOpcode::kFloat32Constant: | 345 case IrOpcode::kFloat32Constant: |
| 346 case IrOpcode::kFloat64Constant: | 346 case IrOpcode::kFloat64Constant: |
| 347 case IrOpcode::kNumberConstant: | 347 case IrOpcode::kNumberConstant: |
| 348 // Constants have no inputs. | 348 // Constants have no inputs. |
| 349 CHECK_EQ(0, input_count); | 349 CHECK_EQ(0, input_count); |
| 350 // Type is a number. | 350 // Type is a number. |
| 351 CheckUpperIs(node, Type::Number()); | 351 CheckUpperIs(node, Type::Number()); |
| 352 break; | 352 break; |
| 353 case IrOpcode::kRelocatableInt32Constant: |
| 354 case IrOpcode::kRelocatableInt64Constant: |
| 355 // TODO(gdeepti): Add accurate checking for relocatable constants. |
| 356 CHECK_EQ(0, input_count); |
| 357 break; |
| 353 case IrOpcode::kHeapConstant: | 358 case IrOpcode::kHeapConstant: |
| 354 // Constants have no inputs. | 359 // Constants have no inputs. |
| 355 CHECK_EQ(0, input_count); | 360 CHECK_EQ(0, input_count); |
| 356 // Type can be anything represented as a heap pointer. | 361 // Type can be anything represented as a heap pointer. |
| 357 CheckUpperIs(node, Type::TaggedPointer()); | 362 CheckUpperIs(node, Type::TaggedPointer()); |
| 358 break; | 363 break; |
| 359 case IrOpcode::kExternalConstant: | 364 case IrOpcode::kExternalConstant: |
| 360 // Constants have no inputs. | 365 // Constants have no inputs. |
| 361 CHECK_EQ(0, input_count); | 366 CHECK_EQ(0, input_count); |
| 362 // Type is considered internal. | 367 // Type is considered internal. |
| (...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 replacement->op()->EffectOutputCount() > 0); | 1284 replacement->op()->EffectOutputCount() > 0); |
| 1280 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1285 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1281 replacement->opcode() == IrOpcode::kFrameState); | 1286 replacement->opcode() == IrOpcode::kFrameState); |
| 1282 } | 1287 } |
| 1283 | 1288 |
| 1284 #endif // DEBUG | 1289 #endif // DEBUG |
| 1285 | 1290 |
| 1286 } // namespace compiler | 1291 } // namespace compiler |
| 1287 } // namespace internal | 1292 } // namespace internal |
| 1288 } // namespace v8 | 1293 } // namespace v8 |
| OLD | NEW |