Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(732)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h

Issue 1765423004: Revert of Use v8::MicrotasksScope internally in V8RecursionScope. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8rs-2-endofscope
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
index 33ed8dc81f6e35097774662712d7ab7cb7946e47..5d709e7367293085c003c595ad0c0f1b76dbdd35 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h
@@ -74,17 +74,30 @@
static void enableIdleTasks(v8::Isolate*, PassOwnPtr<gin::V8IdleTaskRunner>);
+ bool destructionPending() const { return m_destructionPending; }
v8::Isolate* isolate() { return m_isolateHolder->isolate(); }
StringCache* stringCache() { return m_stringCache.get(); }
v8::Persistent<v8::Value>& ensureLiveRoot();
+ int recursionLevel() const { return m_recursionLevel; }
+ int incrementRecursionLevel() { return ++m_recursionLevel; }
+ int decrementRecursionLevel() { return --m_recursionLevel; }
bool isHandlingRecursionLevelError() const { return m_isHandlingRecursionLevelError; }
void setIsHandlingRecursionLevelError(bool value) { m_isHandlingRecursionLevelError = value; }
bool isReportingException() const { return m_isReportingException; }
void setReportingException(bool value) { m_isReportingException = value; }
+
+ bool performingMicrotaskCheckpoint() const { return m_performingMicrotaskCheckpoint; }
+ void setPerformingMicrotaskCheckpoint(bool performingMicrotaskCheckpoint) { m_performingMicrotaskCheckpoint = performingMicrotaskCheckpoint; }
+
+#if ENABLE(ASSERT)
+ int internalScriptRecursionLevel() const { return m_internalScriptRecursionLevel; }
+ int incrementInternalScriptRecursionLevel() { return ++m_internalScriptRecursionLevel; }
+ int decrementInternalScriptRecursionLevel() { return --m_internalScriptRecursionLevel; }
+#endif
V8HiddenValue* hiddenValue() { return m_hiddenValue.get(); }
@@ -118,6 +131,7 @@
bool hasInstance(const WrapperTypeInfo* untrusted, v8::Local<v8::Value>, DOMTemplateMap&);
v8::Local<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v8::Local<v8::Value>, DOMTemplateMap&);
+ bool m_destructionPending;
OwnPtr<gin::IsolateHolder> m_isolateHolder;
DOMTemplateMap m_domTemplateMapForMainWorld;
DOMTemplateMap m_domTemplateMapForNonMainWorld;
@@ -129,8 +143,14 @@
bool m_constructorMode;
friend class ConstructorMode;
+ int m_recursionLevel;
bool m_isHandlingRecursionLevelError;
bool m_isReportingException;
+
+#if ENABLE(ASSERT)
+ int m_internalScriptRecursionLevel;
+#endif
+ bool m_performingMicrotaskCheckpoint;
Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks;
OwnPtr<ThreadDebugger> m_threadDebugger;

Powered by Google App Engine
This is Rietveld 408576698