Thank you Ben~ I just read the a little code implementation, but I still confused when should I use *isolate->enter()* and *isolate->exit()* ? What's the use case of them?
在2020年8月12日星期三 UTC+8 上午12:45:36<Ben Noordhuis> 写道: > On Tue, Aug 11, 2020 at 5:56 PM Ran Aizen <abbshr...@gmail.com> wrote: > > From your answer, I guess that v8 no longer maintaining the execution > context after "isolate->TerminateExecution" and cleanup the stack frame, so > we can't continue the execution from where we stopped? > > That's right. Think of it like this: your C++ code calls into the VM > and the VM can call out to your code. It's not safe to call > isolate->Exit() as long as there are VM stack frames on the call > stack. > > isolate->TerminateExecution() works because it unwinds the VM stack > and returns control to your C++ code. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/d83b5134-326a-47d7-b834-d53dc2efba81n%40googlegroups.com.