Bug 842347 - Inline utility functions to reduce a promise stack size.

Attempt to reduce stack size