diff options
Diffstat (limited to 'Source/JavaScriptCore/runtime/VMEntryScope.h')
-rw-r--r-- | Source/JavaScriptCore/runtime/VMEntryScope.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/Source/JavaScriptCore/runtime/VMEntryScope.h b/Source/JavaScriptCore/runtime/VMEntryScope.h index d5ba823d0..d37fad6d7 100644 --- a/Source/JavaScriptCore/runtime/VMEntryScope.h +++ b/Source/JavaScriptCore/runtime/VMEntryScope.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Apple Inc. All rights reserved. + * Copyright (C) 2013, 2014 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -23,12 +23,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef VMEntryScope_h -#define VMEntryScope_h +#pragma once -#include "Interpreter.h" #include <wtf/StackBounds.h> #include <wtf/StackStats.h> +#include <wtf/Vector.h> namespace JSC { @@ -40,25 +39,15 @@ public: JS_EXPORT_PRIVATE VMEntryScope(VM&, JSGlobalObject*); JS_EXPORT_PRIVATE ~VMEntryScope(); + VM& vm() const { return m_vm; } JSGlobalObject* globalObject() const { return m_globalObject; } - void setRecompilationNeeded(bool recompileNeeded) { m_recompilationNeeded = recompileNeeded; } + void addDidPopListener(std::function<void ()>); private: - size_t requiredCapacity() const; - VM& m_vm; - StackStats::CheckPoint m_stackCheckPoint; - StackBounds m_stack; JSGlobalObject* m_globalObject; - - // m_prev and m_prevStackLimit may belong to a different thread's stack. - VMEntryScope* m_prev; - void* m_prevStackLimit; - bool m_recompilationNeeded; + Vector<std::function<void ()>> m_didPopListeners; }; } // namespace JSC - -#endif // VMEntryScope_h - |