| 167 | } |
| 168 | |
| 169 | BeVectorType* BeContext::CreateVectorType(BeType* type, int length) |
| 170 | { |
| 171 | auto arrayType = mTypes.Alloc<BeVectorType>(); |
| 172 | arrayType->mContext = this; |
| 173 | arrayType->mTypeCode = BeTypeCode_Vector; |
| 174 | arrayType->mElementType = type; |
| 175 | arrayType->mLength = length; |
| 176 | arrayType->mSize = type->GetStride() * length; |
| 177 | arrayType->mAlign = type->mAlign; |
| 178 | return arrayType; |
| 179 | } |
| 180 | |
| 181 | BeFunctionType* BeContext::CreateFunctionType(BeType* returnType, const SizedArrayImpl<BeType*>& paramTypes, bool isVarArg) |
| 182 | { |
no test coverage detected