| 514 | } |
| 515 | |
| 516 | llvm::Value* CodegenAnyVal::GetLen() { |
| 517 | // Get the high bytes of the first value. |
| 518 | DCHECK(type_.IsStringType() || type_.IsCollectionType() || type_.IsStructType()); |
| 519 | llvm::Value* v = builder_->CreateExtractValue(value_, 0); |
| 520 | return GetHighBits(32, v); |
| 521 | } |
| 522 | |
| 523 | void CodegenAnyVal::SetPtr(llvm::Value* ptr) { |
| 524 | // Set the second pointer value to 'ptr'. |
no test coverage detected