[1.2>master] [MERGE #777] Dont attempt to get profiled iterations of a functionbody if it's bytecode hasn't been generated yet.
[1.2>master] [MERGE #777] Dont attempt to get profiled iterations of a functionbody if it's bytecode hasn't been generated yet.

Merge pull request #777 from rajatd:profileCall
A number of conditions required to be met for this issue to repro:
1. A callee at a polymorphic callsite was defer-parsed.
2. Upon undeferring, its bytecode generation failed.
3. While gathering codegen data for the parent function, we recorded that the said callee cannot be inlined but we still needed to save the info that we will need to emit a call to this function when we inline the rest of the calls at this callsite. We try to save the number of profiled iterations for the callee on the info that we collect for it - that's when we assert that execution mode and limits have not been initialized (because the bytecode wasn't generated)

Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore