We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当全局代码还没有执行完,就要执行一个函数的时候,会把当前的全局EC压到栈底。然后把函数的执行栈,压入栈,执行函数。函数执行完以后,弹出。继续执行全局代码。如果是闭包的话,是不会出栈的,因为出栈就会销毁,而是把它压入栈底
每一个执行上下文里面,都有一个变量对象,来存储变量对象
在全局EC里面,叫 VO,Variable Object(变量对象) 在函数EC里面,叫AO,activation object(活动对象)
The text was updated successfully, but these errors were encountered:
重写一篇,之前的过期且枯燥
看这篇吧 :#63
Sorry, something went wrong.
No branches or pull requests
ECStack 执行环境栈(Execution Context Stack)(栈内存)
当全局代码还没有执行完,就要执行一个函数的时候,会把当前的全局EC压到栈底。然后把函数的执行栈,压入栈,执行函数。函数执行完以后,弹出。继续执行全局代码。如果是闭包的话,是不会出栈的,因为出栈就会销毁,而是把它压入栈底
EC 执行上下文(Execution Context)
变量对象
每一个执行上下文里面,都有一个变量对象,来存储变量对象
在全局EC里面,叫 VO,Variable Object(变量对象)
在函数EC里面,叫AO,activation object(活动对象)
The text was updated successfully, but these errors were encountered: