| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 void setPreviousSamplingState(const char* name) { m_previousSamplingState =
name; } | 107 void setPreviousSamplingState(const char* name) { m_previousSamplingState =
name; } |
| 108 | 108 |
| 109 // EndOfScopeTasks are run by V8RecursionScope when control is returning | 109 // EndOfScopeTasks are run by V8RecursionScope when control is returning |
| 110 // to C++ from script, after executing a script task (e.g. callback, | 110 // to C++ from script, after executing a script task (e.g. callback, |
| 111 // event) or microtasks (e.g. promise). This is explicitly needed for | 111 // event) or microtasks (e.g. promise). This is explicitly needed for |
| 112 // Indexed DB transactions per spec, but should in general be avoided. | 112 // Indexed DB transactions per spec, but should in general be avoided. |
| 113 void addEndOfScopeTask(PassOwnPtr<EndOfScopeTask>); | 113 void addEndOfScopeTask(PassOwnPtr<EndOfScopeTask>); |
| 114 void runEndOfScopeTasks(); | 114 void runEndOfScopeTasks(); |
| 115 void clearEndOfScopeTasks(); | 115 void clearEndOfScopeTasks(); |
| 116 | 116 |
| 117 void setScriptDebugServer(PassOwnPtr<ScriptDebugServer>); | 117 void setScriptDebugServer(PassOwnPtrWillBeRawPtr<ScriptDebugServer>); |
| 118 | 118 |
| 119 private: | 119 private: |
| 120 V8PerIsolateData(); | 120 V8PerIsolateData(); |
| 121 ~V8PerIsolateData(); | 121 ~V8PerIsolateData(); |
| 122 | 122 |
| 123 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate>> DOMTemplateM
ap; | 123 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate>> DOMTemplateM
ap; |
| 124 DOMTemplateMap& currentDOMTemplateMap(); | 124 DOMTemplateMap& currentDOMTemplateMap(); |
| 125 bool hasInstance(const WrapperTypeInfo* untrusted, v8::Handle<v8::Value>, DO
MTemplateMap&); | 125 bool hasInstance(const WrapperTypeInfo* untrusted, v8::Handle<v8::Value>, DO
MTemplateMap&); |
| 126 v8::Local<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v
8::Local<v8::Value>, DOMTemplateMap&); | 126 v8::Local<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*, v
8::Local<v8::Value>, DOMTemplateMap&); |
| 127 | 127 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 143 int m_recursionLevel; | 143 int m_recursionLevel; |
| 144 bool m_isHandlingRecursionLevelError; | 144 bool m_isHandlingRecursionLevelError; |
| 145 bool m_isReportingException; | 145 bool m_isReportingException; |
| 146 | 146 |
| 147 #if ENABLE(ASSERT) | 147 #if ENABLE(ASSERT) |
| 148 int m_internalScriptRecursionLevel; | 148 int m_internalScriptRecursionLevel; |
| 149 #endif | 149 #endif |
| 150 bool m_performingMicrotaskCheckpoint; | 150 bool m_performingMicrotaskCheckpoint; |
| 151 | 151 |
| 152 Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks; | 152 Vector<OwnPtr<EndOfScopeTask>> m_endOfScopeTasks; |
| 153 OwnPtr<ScriptDebugServer> m_debugServer; | 153 OwnPtrWillBePersistent<ScriptDebugServer> m_debugServer; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace blink | 156 } // namespace blink |
| 157 | 157 |
| 158 #endif // V8PerIsolateData_h | 158 #endif // V8PerIsolateData_h |
| OLD | NEW |