Bug 1525838 Comment 4 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

@npp: I wonder if we could store the VMFunctions in a (constexpr and statically allocated) array instead of linked list. We would have to use some sort of macro to fill this array + define either an enum class like "FunctionFoo = 0, FunctionBar = 1," or constexpr VMFunction* pointers into the array for each of them.

What do you think? I think it's worth considering alternatives even if it makes things a bit less ergonomic.
@nbp: I wonder if we could store the VMFunctions in a (constexpr and statically allocated) array instead of linked list. We would have to use some sort of macro to fill this array + define either an enum class like "FunctionFoo = 0, FunctionBar = 1," or constexpr VMFunction* pointers into the array for each of them.

What do you think? I think it's worth considering alternatives even if it makes things a bit less ergonomic.

Back to Bug 1525838 Comment 4