| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 void clearShouldCollectGarbageSoon() { m_shouldCollectGarbageSoon = false; } | 135 void clearShouldCollectGarbageSoon() { m_shouldCollectGarbageSoon = false; } |
| 136 bool shouldCollectGarbageSoon() const { return m_shouldCollectGarbageSoon; } | 136 bool shouldCollectGarbageSoon() const { return m_shouldCollectGarbageSoon; } |
| 137 | 137 |
| 138 bool hasPrivateTemplate(WrapperWorldType, void* privatePointer); | 138 bool hasPrivateTemplate(WrapperWorldType, void* privatePointer); |
| 139 v8::Persistent<v8::FunctionTemplate> privateTemplate(WrapperWorldType, void*
privatePointer, v8::InvocationCallback, v8::Handle<v8::Value> data, v8::Handle<
v8::Signature>, int length = 0); | 139 v8::Persistent<v8::FunctionTemplate> privateTemplate(WrapperWorldType, void*
privatePointer, v8::InvocationCallback, v8::Handle<v8::Value> data, v8::Handle<
v8::Signature>, int length = 0); |
| 140 | 140 |
| 141 v8::Persistent<v8::FunctionTemplate> rawTemplate(WrapperTypeInfo*, WrapperWo
rldType); | 141 v8::Persistent<v8::FunctionTemplate> rawTemplate(WrapperTypeInfo*, WrapperWo
rldType); |
| 142 | 142 |
| 143 bool hasInstance(WrapperTypeInfo*, v8::Handle<v8::Value>, WrapperWorldType); | 143 bool hasInstance(WrapperTypeInfo*, v8::Handle<v8::Value>, WrapperWorldType); |
| 144 | 144 |
| 145 v8::Local<v8::Context> ensureRegexContext(); |
| 146 |
| 145 private: | 147 private: |
| 146 explicit V8PerIsolateData(v8::Isolate*); | 148 explicit V8PerIsolateData(v8::Isolate*); |
| 147 ~V8PerIsolateData(); | 149 ~V8PerIsolateData(); |
| 148 static v8::Handle<v8::Value> constructorOfToString(const v8::Arguments&); | 150 static v8::Handle<v8::Value> constructorOfToString(const v8::Arguments&); |
| 149 | 151 |
| 150 v8::Isolate* m_isolate; | 152 v8::Isolate* m_isolate; |
| 151 TemplateMap m_rawTemplatesForMainWorld; | 153 TemplateMap m_rawTemplatesForMainWorld; |
| 152 TemplateMap m_rawTemplatesForNonMainWorld; | 154 TemplateMap m_rawTemplatesForNonMainWorld; |
| 153 TemplateMap m_templatesForMainWorld; | 155 TemplateMap m_templatesForMainWorld; |
| 154 TemplateMap m_templatesForNonMainWorld; | 156 TemplateMap m_templatesForNonMainWorld; |
| 155 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate; | 157 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate; |
| 156 v8::Persistent<v8::FunctionTemplate> m_lazyEventListenerToStringTemplate; | 158 v8::Persistent<v8::FunctionTemplate> m_lazyEventListenerToStringTemplate; |
| 157 OwnPtr<StringCache> m_stringCache; | 159 OwnPtr<StringCache> m_stringCache; |
| 158 OwnPtr<IntegerCache> m_integerCache; | 160 OwnPtr<IntegerCache> m_integerCache; |
| 159 ScopedPersistent<v8::Value> m_v8Null; | 161 ScopedPersistent<v8::Value> m_v8Null; |
| 160 | 162 |
| 161 Vector<DOMDataStore*> m_domDataList; | 163 Vector<DOMDataStore*> m_domDataList; |
| 162 DOMDataStore* m_workerDomDataStore; | 164 DOMDataStore* m_workerDomDataStore; |
| 163 | 165 |
| 164 OwnPtr<V8HiddenPropertyName> m_hiddenPropertyName; | 166 OwnPtr<V8HiddenPropertyName> m_hiddenPropertyName; |
| 165 ScopedPersistent<v8::Value> m_liveRoot; | 167 ScopedPersistent<v8::Value> m_liveRoot; |
| 166 ScopedPersistent<v8::Context> m_auxiliaryContext; | 168 ScopedPersistent<v8::Context> m_regexContext; |
| 167 | 169 |
| 168 bool m_constructorMode; | 170 bool m_constructorMode; |
| 169 friend class ConstructorMode; | 171 friend class ConstructorMode; |
| 170 | 172 |
| 171 int m_recursionLevel; | 173 int m_recursionLevel; |
| 172 | 174 |
| 173 #ifndef NDEBUG | 175 #ifndef NDEBUG |
| 174 int m_internalScriptRecursionLevel; | 176 int m_internalScriptRecursionLevel; |
| 175 #endif | 177 #endif |
| 176 OwnPtr<GCEventData> m_gcEventData; | 178 OwnPtr<GCEventData> m_gcEventData; |
| 177 bool m_shouldCollectGarbageSoon; | 179 bool m_shouldCollectGarbageSoon; |
| 178 }; | 180 }; |
| 179 | 181 |
| 180 } // namespace WebCore | 182 } // namespace WebCore |
| 181 | 183 |
| 182 #endif // V8PerIsolateData_h | 184 #endif // V8PerIsolateData_h |
| OLD | NEW |