OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 97 } |
98 | 98 |
99 // DOMDataStore is owned outside V8PerIsolateData. | 99 // DOMDataStore is owned outside V8PerIsolateData. |
100 DOMDataStore* workerDOMDataStore() { return m_workerDomDataStore; } | 100 DOMDataStore* workerDOMDataStore() { return m_workerDomDataStore; } |
101 void setWorkerDOMDataStore(DOMDataStore* store) { m_workerDomDataStore = sto
re; } | 101 void setWorkerDOMDataStore(DOMDataStore* store) { m_workerDomDataStore = sto
re; } |
102 | 102 |
103 int recursionLevel() const { return m_recursionLevel; } | 103 int recursionLevel() const { return m_recursionLevel; } |
104 int incrementRecursionLevel() { return ++m_recursionLevel; } | 104 int incrementRecursionLevel() { return ++m_recursionLevel; } |
105 int decrementRecursionLevel() { return --m_recursionLevel; } | 105 int decrementRecursionLevel() { return --m_recursionLevel; } |
106 | 106 |
| 107 bool performingMicrotaskCheckpoint() const { return m_performingMicrotaskChe
ckpoint; } |
| 108 void setPerformingMicrotaskCheckpoint(bool performingMicrotaskCheckpoint) {
m_performingMicrotaskCheckpoint = performingMicrotaskCheckpoint; } |
| 109 |
107 #ifndef NDEBUG | 110 #ifndef NDEBUG |
108 int internalScriptRecursionLevel() const { return m_internalScriptRecursionL
evel; } | 111 int internalScriptRecursionLevel() const { return m_internalScriptRecursionL
evel; } |
109 int incrementInternalScriptRecursionLevel() { return ++m_internalScriptRecur
sionLevel; } | 112 int incrementInternalScriptRecursionLevel() { return ++m_internalScriptRecur
sionLevel; } |
110 int decrementInternalScriptRecursionLevel() { return --m_internalScriptRecur
sionLevel; } | 113 int decrementInternalScriptRecursionLevel() { return --m_internalScriptRecur
sionLevel; } |
111 #endif | 114 #endif |
112 | 115 |
113 GCEventData* gcEventData() { return m_gcEventData.get(); } | 116 GCEventData* gcEventData() { return m_gcEventData.get(); } |
114 | 117 |
115 // Gives the system a hint that we should request garbage collection | 118 // Gives the system a hint that we should request garbage collection |
116 // upon the next close or navigation event, because some expensive | 119 // upon the next close or navigation event, because some expensive |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 bool m_constructorMode; | 159 bool m_constructorMode; |
157 friend class ConstructorMode; | 160 friend class ConstructorMode; |
158 | 161 |
159 int m_recursionLevel; | 162 int m_recursionLevel; |
160 | 163 |
161 #ifndef NDEBUG | 164 #ifndef NDEBUG |
162 int m_internalScriptRecursionLevel; | 165 int m_internalScriptRecursionLevel; |
163 #endif | 166 #endif |
164 OwnPtr<GCEventData> m_gcEventData; | 167 OwnPtr<GCEventData> m_gcEventData; |
165 bool m_shouldCollectGarbageSoon; | 168 bool m_shouldCollectGarbageSoon; |
| 169 bool m_performingMicrotaskCheckpoint; |
166 }; | 170 }; |
167 | 171 |
168 } // namespace WebCore | 172 } // namespace WebCore |
169 | 173 |
170 #endif // V8PerIsolateData_h | 174 #endif // V8PerIsolateData_h |
OLD | NEW |