JavaScript is a single threaded execution environment. When v8 is running a script, it may receive an external interrupt that requires immediate attention and necessitates pre-empting the currently running script to some other work. A prime example of this would be debug break request from the debugger. v8 also needs to do periodic book-keeping tasks like increment the code profiler tick count (part of selecting code for optimization). These are all processed StackGuard::HandleInterrupts (execution.cc). StackCheck and InterruptCheck both execute this with StackCheck additionally performing an overflow check on the stack.
-- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
