There are many places in the code where ScriptCallStack is used only to get top frame arguments We should pass ScriptState and ScriptCallFrame instead of ScriptCallStack in those cases.