class FixupFlagsIsPCRelative: public BitField<bool, 0, 1> {};
class FixupFlagsUseCodeObject: public BitField<bool, 1, 1> {};
class FixupFlagsArgumentsCount: public BitField<uint32_t, 2, 32-2> {};
-
+
// Support for thread preemption.
static int ArchiveSpacePerThread();
static char* ArchiveState(char* to);
Persistent<Context> thread_context = Context::New(NULL, global_template);
thread_context->SetSecurityToken(Undefined());
-
+
Context::Scope context_scope(thread_context);
-
+
char* ptr = const_cast<char*>(files_.start());
while ((ptr != NULL) && (*ptr != '\0')) {
// For each newline-separated line.
Handle<String> str = Shell::ReadFile(filename);
Shell::ExecuteString(str, String::New(filename), false, false);
}
-
+
thread_context.Dispose();
}
// Initial StackGuard is being set. We will set the stack limits based on
// the current stack pointer allowing the stack to grow kLimitSize from
// here.
-
+
// Ensure that either the stack limits are unset (kIllegalLimit) or that
// they indicate a pending interruption. The interrupt limit will be
// temporarily reset through the code below and reestablished if the
Thread::SetThreadLocal(thread_state_key, NULL);
return true;
}
-
+
// Make sure that the preemption thread cannot modify the thread state while
// it is being archived or restored.
ExecutionAccess access;
-
+
// If there is another thread that was lazily archived then we have to really
// archive it now.
if (lazily_archived_thread_.IsValid()) {