summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/runtime/VMEntryScope.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/JavaScriptCore/runtime/VMEntryScope.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/JavaScriptCore/runtime/VMEntryScope.h')
-rw-r--r--Source/JavaScriptCore/runtime/VMEntryScope.h23
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
-