| 3530 | } |
| 3531 | |
| 3532 | BeCallInst* BeModule::CreateCall(BeValue* func, const SizedArrayImpl<BeValue*>& args) |
| 3533 | { |
| 3534 | auto inst = mOwnedValues.Alloc<BeCallInst>(); |
| 3535 | inst->mFunc = func; |
| 3536 | if (!args.IsEmpty()) |
| 3537 | { |
| 3538 | inst->mArgs.resize(args.size()); |
| 3539 | for (int i = 0; i < (int)args.size(); i++) |
| 3540 | inst->mArgs[i].mValue = args[i]; |
| 3541 | } |
| 3542 | AddInst(inst); |
| 3543 | return inst; |
| 3544 | } |
| 3545 | |
| 3546 | BeConstant* BeModule::GetConstant(BeType* type, double floatVal) |
| 3547 | { |
no test coverage detected