| 473 | } |
| 474 | |
| 475 | void BeConstant::HashContent(BeHashContext& hashCtx) |
| 476 | { |
| 477 | hashCtx.Mixin(TypeId); |
| 478 | mType->HashReference(hashCtx); |
| 479 | if (mType->mTypeCode < BeTypeCode_Struct) |
| 480 | { |
| 481 | hashCtx.Mixin(mUInt64); |
| 482 | } |
| 483 | else if (mType->IsPointer()) |
| 484 | { |
| 485 | if (mTarget != NULL) |
| 486 | mTarget->HashReference(hashCtx); |
| 487 | else |
| 488 | hashCtx.Mixin(-1); |
| 489 | } |
| 490 | else if (mType->IsComposite()) |
| 491 | { |
| 492 | // Zero-init |
| 493 | BF_ASSERT(mTarget == NULL); |
| 494 | } |
| 495 | else |
| 496 | BF_FATAL("NotImpl"); |
| 497 | } |
| 498 | |
| 499 | void BeStructConstant::GetData(BeConstData& data) |
| 500 | { |
no test coverage detected