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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // event) or microtasks (e.g. promise). This is explicitly needed for | 110 // event) or microtasks (e.g. promise). This is explicitly needed for |
111 // Indexed DB transactions per spec, but should in general be avoided. | 111 // Indexed DB transactions per spec, but should in general be avoided. |
112 void addEndOfScopeTask(PassOwnPtr<EndOfScopeTask>); | 112 void addEndOfScopeTask(PassOwnPtr<EndOfScopeTask>); |
113 void runEndOfScopeTasks(); | 113 void runEndOfScopeTasks(); |
114 void clearEndOfScopeTasks(); | 114 void clearEndOfScopeTasks(); |
115 | 115 |
116 private: | 116 private: |
117 V8PerIsolateData(); | 117 V8PerIsolateData(); |
118 ~V8PerIsolateData(); | 118 ~V8PerIsolateData(); |
119 | 119 |
120 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate> > DOMTemplate
Map; | 120 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate>> DOMTemplateM
ap; |
121 DOMTemplateMap& currentDOMTemplateMap(); | 121 DOMTemplateMap& currentDOMTemplateMap(); |
122 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>, DOMTemplateM
ap&); | 122 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>, DOMTemplateM
ap&); |
123 v8::Local<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v
8::Local<v8::Value>, DOMTemplateMap&); | 123 v8::Local<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v
8::Local<v8::Value>, DOMTemplateMap&); |
124 | 124 |
125 bool m_destructionPending; | 125 bool m_destructionPending; |
126 OwnPtr<gin::IsolateHolder> m_isolateHolder; | 126 OwnPtr<gin::IsolateHolder> m_isolateHolder; |
127 DOMTemplateMap m_domTemplateMapForMainWorld; | 127 DOMTemplateMap m_domTemplateMapForMainWorld; |
128 DOMTemplateMap m_domTemplateMapForNonMainWorld; | 128 DOMTemplateMap m_domTemplateMapForNonMainWorld; |
129 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate; | 129 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate; |
130 OwnPtr<StringCache> m_stringCache; | 130 OwnPtr<StringCache> m_stringCache; |
(...skipping 14 matching lines...) Expand all Loading... |
145 int m_internalScriptRecursionLevel; | 145 int m_internalScriptRecursionLevel; |
146 #endif | 146 #endif |
147 bool m_performingMicrotaskCheckpoint; | 147 bool m_performingMicrotaskCheckpoint; |
148 | 148 |
149 Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks; | 149 Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks; |
150 }; | 150 }; |
151 | 151 |
152 } // namespace blink | 152 } // namespace blink |
153 | 153 |
154 #endif // V8PerIsolateData_h | 154 #endif // V8PerIsolateData_h |
OLD | NEW |