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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class DOMDataStore; | 39 class DOMDataStore; |
40 class GCEventData; | 40 class GCEventData; |
41 class IntegerCache; | 41 class IntegerCache; |
42 class StringCache; | 42 class StringCache; |
43 class V8HiddenPropertyName; | 43 class V8HiddenPropertyName; |
44 struct WrapperTypeInfo; | 44 struct WrapperTypeInfo; |
45 | 45 |
46 #if ENABLE(INSPECTOR) | |
47 class ExternalStringVisitor; | 46 class ExternalStringVisitor; |
48 #endif | |
49 | 47 |
50 typedef WTF::Vector<DOMDataStore*> DOMDataList; | 48 typedef WTF::Vector<DOMDataStore*> DOMDataList; |
51 | 49 |
52 class V8PerIsolateData { | 50 class V8PerIsolateData { |
53 public: | 51 public: |
54 static V8PerIsolateData* create(v8::Isolate*); | 52 static V8PerIsolateData* create(v8::Isolate*); |
55 static void ensureInitialized(v8::Isolate*); | 53 static void ensureInitialized(v8::Isolate*); |
56 static V8PerIsolateData* current() | 54 static V8PerIsolateData* current() |
57 { | 55 { |
58 return from(v8::Isolate::GetCurrent()); | 56 return from(v8::Isolate::GetCurrent()); |
(...skipping 28 matching lines...) Expand all Loading... |
87 return m_lazyEventListenerToStringTemplate; | 85 return m_lazyEventListenerToStringTemplate; |
88 } | 86 } |
89 | 87 |
90 StringCache* stringCache() { return m_stringCache.get(); } | 88 StringCache* stringCache() { return m_stringCache.get(); } |
91 IntegerCache* integerCache() { return m_integerCache.get(); } | 89 IntegerCache* integerCache() { return m_integerCache.get(); } |
92 | 90 |
93 v8::Handle<v8::Value> v8Null() { return m_v8Null.get(); } | 91 v8::Handle<v8::Value> v8Null() { return m_v8Null.get(); } |
94 | 92 |
95 v8::Persistent<v8::Value> ensureLiveRoot(); | 93 v8::Persistent<v8::Value> ensureLiveRoot(); |
96 | 94 |
97 #if ENABLE(INSPECTOR) | |
98 void visitExternalStrings(ExternalStringVisitor*); | 95 void visitExternalStrings(ExternalStringVisitor*); |
99 #endif | |
100 DOMDataList& allStores() { return m_domDataList; } | 96 DOMDataList& allStores() { return m_domDataList; } |
101 | 97 |
102 V8HiddenPropertyName* hiddenPropertyName() { return m_hiddenPropertyName.get
(); } | 98 V8HiddenPropertyName* hiddenPropertyName() { return m_hiddenPropertyName.get
(); } |
103 | 99 |
104 void registerDOMDataStore(DOMDataStore* domDataStore) | 100 void registerDOMDataStore(DOMDataStore* domDataStore) |
105 { | 101 { |
106 ASSERT(m_domDataList.find(domDataStore) == notFound); | 102 ASSERT(m_domDataList.find(domDataStore) == notFound); |
107 m_domDataList.append(domDataStore); | 103 m_domDataList.append(domDataStore); |
108 } | 104 } |
109 | 105 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 #ifndef NDEBUG | 173 #ifndef NDEBUG |
178 int m_internalScriptRecursionLevel; | 174 int m_internalScriptRecursionLevel; |
179 #endif | 175 #endif |
180 OwnPtr<GCEventData> m_gcEventData; | 176 OwnPtr<GCEventData> m_gcEventData; |
181 bool m_shouldCollectGarbageSoon; | 177 bool m_shouldCollectGarbageSoon; |
182 }; | 178 }; |
183 | 179 |
184 } // namespace WebCore | 180 } // namespace WebCore |
185 | 181 |
186 #endif // V8PerIsolateData_h | 182 #endif // V8PerIsolateData_h |
OLD | NEW |