| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 void setThreadDebugger(std::unique_ptr<ThreadDebugger>); | 143 void setThreadDebugger(std::unique_ptr<ThreadDebugger>); |
| 144 ThreadDebugger* threadDebugger(); | 144 ThreadDebugger* threadDebugger(); |
| 145 | 145 |
| 146 using ActiveScriptWrappableSet = HeapHashSet<WeakMember<ActiveScriptWrappabl
e>>; | 146 using ActiveScriptWrappableSet = HeapHashSet<WeakMember<ActiveScriptWrappabl
e>>; |
| 147 void addActiveScriptWrappable(ActiveScriptWrappable*); | 147 void addActiveScriptWrappable(ActiveScriptWrappable*); |
| 148 const ActiveScriptWrappableSet* activeScriptWrappables() const { return m_ac
tiveScriptWrappables.get(); } | 148 const ActiveScriptWrappableSet* activeScriptWrappables() const { return m_ac
tiveScriptWrappables.get(); } |
| 149 | 149 |
| 150 void setScriptWrappableVisitor(std::unique_ptr<ScriptWrappableVisitor> visit
or) { m_scriptWrappableVisitor = std::move(visitor); } | 150 void setScriptWrappableVisitor(std::unique_ptr<ScriptWrappableVisitor> visit
or) { m_scriptWrappableVisitor = std::move(visitor); } |
| 151 ScriptWrappableVisitor* scriptWrappableVisitor() { return m_scriptWrappableV
isitor.get(); } | 151 ScriptWrappableVisitor* scriptWrappableVisitor() { return m_scriptWrappableV
isitor.get(); } |
| 152 | 152 |
| 153 static void purgeMemory(); |
| 154 |
| 153 private: | 155 private: |
| 154 V8PerIsolateData(); | 156 V8PerIsolateData(); |
| 155 ~V8PerIsolateData(); | 157 ~V8PerIsolateData(); |
| 156 | 158 |
| 157 static void useCounterCallback(v8::Isolate*, v8::Isolate::UseCounterFeature)
; | 159 static void useCounterCallback(v8::Isolate*, v8::Isolate::UseCounterFeature)
; |
| 158 | 160 |
| 159 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate>> V8FunctionTe
mplateMap; | 161 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate>> V8FunctionTe
mplateMap; |
| 160 V8FunctionTemplateMap& selectInterfaceTemplateMap(const DOMWrapperWorld&); | 162 V8FunctionTemplateMap& selectInterfaceTemplateMap(const DOMWrapperWorld&); |
| 161 V8FunctionTemplateMap& selectOperationTemplateMap(const DOMWrapperWorld&); | 163 V8FunctionTemplateMap& selectOperationTemplateMap(const DOMWrapperWorld&); |
| 162 bool hasInstance(const WrapperTypeInfo* untrusted, v8::Local<v8::Value>, V8F
unctionTemplateMap&); | 164 bool hasInstance(const WrapperTypeInfo* untrusted, v8::Local<v8::Value>, V8F
unctionTemplateMap&); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 191 Vector<std::unique_ptr<EndOfScopeTask>> m_endOfScopeTasks; | 193 Vector<std::unique_ptr<EndOfScopeTask>> m_endOfScopeTasks; |
| 192 std::unique_ptr<ThreadDebugger> m_threadDebugger; | 194 std::unique_ptr<ThreadDebugger> m_threadDebugger; |
| 193 | 195 |
| 194 Persistent<ActiveScriptWrappableSet> m_activeScriptWrappables; | 196 Persistent<ActiveScriptWrappableSet> m_activeScriptWrappables; |
| 195 std::unique_ptr<ScriptWrappableVisitor> m_scriptWrappableVisitor; | 197 std::unique_ptr<ScriptWrappableVisitor> m_scriptWrappableVisitor; |
| 196 }; | 198 }; |
| 197 | 199 |
| 198 } // namespace blink | 200 } // namespace blink |
| 199 | 201 |
| 200 #endif // V8PerIsolateData_h | 202 #endif // V8PerIsolateData_h |
| OLD | NEW |