| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 GCEventData* gcEventData() { return m_gcEventData.get(); } | 87 GCEventData* gcEventData() { return m_gcEventData.get(); } |
| 88 V8HiddenValue* hiddenValue() { return m_hiddenValue.get(); } | 88 V8HiddenValue* hiddenValue() { return m_hiddenValue.get(); } |
| 89 | 89 |
| 90 v8::Handle<v8::FunctionTemplate> domTemplate(void* domTemplateKey, v8::Funct
ionCallback = 0, v8::Handle<v8::Value> data = v8::Handle<v8::Value>(), v8::Handl
e<v8::Signature> = v8::Handle<v8::Signature>(), int length = 0); | 90 v8::Handle<v8::FunctionTemplate> domTemplate(void* domTemplateKey, v8::Funct
ionCallback = 0, v8::Handle<v8::Value> data = v8::Handle<v8::Value>(), v8::Handl
e<v8::Signature> = v8::Handle<v8::Signature>(), int length = 0); |
| 91 v8::Handle<v8::FunctionTemplate> existingDOMTemplate(void* domTemplateKey); | 91 v8::Handle<v8::FunctionTemplate> existingDOMTemplate(void* domTemplateKey); |
| 92 void setDOMTemplate(void* domTemplateKey, v8::Handle<v8::FunctionTemplate>); | 92 void setDOMTemplate(void* domTemplateKey, v8::Handle<v8::FunctionTemplate>); |
| 93 | 93 |
| 94 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>); | 94 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>); |
| 95 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*,
v8::Handle<v8::Value>); | 95 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*,
v8::Handle<v8::Value>); |
| 96 | 96 |
| 97 v8::Local<v8::Context> ensureScriptRegexpContext(); |
| 98 |
| 97 const char* previousSamplingState() const { return m_previousSamplingState;
} | 99 const char* previousSamplingState() const { return m_previousSamplingState;
} |
| 98 void setPreviousSamplingState(const char* name) { m_previousSamplingState =
name; } | 100 void setPreviousSamplingState(const char* name) { m_previousSamplingState =
name; } |
| 99 | 101 |
| 100 private: | 102 private: |
| 101 V8PerIsolateData(); | 103 V8PerIsolateData(); |
| 102 ~V8PerIsolateData(); | 104 ~V8PerIsolateData(); |
| 103 | 105 |
| 104 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate> > DOMTemplate
Map; | 106 typedef HashMap<const void*, v8::Eternal<v8::FunctionTemplate> > DOMTemplate
Map; |
| 105 DOMTemplateMap& currentDOMTemplateMap(); | 107 DOMTemplateMap& currentDOMTemplateMap(); |
| 106 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>, DOMTemplateM
ap&); | 108 bool hasInstance(const WrapperTypeInfo*, v8::Handle<v8::Value>, DOMTemplateM
ap&); |
| 107 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*,
v8::Handle<v8::Value>, DOMTemplateMap&); | 109 v8::Handle<v8::Object> findInstanceInPrototypeChain(const WrapperTypeInfo*,
v8::Handle<v8::Value>, DOMTemplateMap&); |
| 108 | 110 |
| 109 OwnPtr<gin::IsolateHolder> m_isolateHolder; | 111 OwnPtr<gin::IsolateHolder> m_isolateHolder; |
| 110 DOMTemplateMap m_domTemplateMapForMainWorld; | 112 DOMTemplateMap m_domTemplateMapForMainWorld; |
| 111 DOMTemplateMap m_domTemplateMapForNonMainWorld; | 113 DOMTemplateMap m_domTemplateMapForNonMainWorld; |
| 112 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate; | 114 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate; |
| 113 OwnPtr<StringCache> m_stringCache; | 115 OwnPtr<StringCache> m_stringCache; |
| 114 OwnPtr<V8HiddenValue> m_hiddenValue; | 116 OwnPtr<V8HiddenValue> m_hiddenValue; |
| 115 ScopedPersistent<v8::Value> m_liveRoot; | 117 ScopedPersistent<v8::Value> m_liveRoot; |
| 118 RefPtr<ScriptState> m_scriptRegexpScriptState; |
| 116 | 119 |
| 117 const char* m_previousSamplingState; | 120 const char* m_previousSamplingState; |
| 118 | 121 |
| 119 bool m_constructorMode; | 122 bool m_constructorMode; |
| 120 friend class ConstructorMode; | 123 friend class ConstructorMode; |
| 121 | 124 |
| 122 int m_recursionLevel; | 125 int m_recursionLevel; |
| 123 bool m_isHandlingRecursionLevelError; | 126 bool m_isHandlingRecursionLevelError; |
| 124 | 127 |
| 125 #if ENABLE(ASSERT) | 128 #if ENABLE(ASSERT) |
| 126 int m_internalScriptRecursionLevel; | 129 int m_internalScriptRecursionLevel; |
| 127 #endif | 130 #endif |
| 128 OwnPtr<GCEventData> m_gcEventData; | 131 OwnPtr<GCEventData> m_gcEventData; |
| 129 bool m_performingMicrotaskCheckpoint; | 132 bool m_performingMicrotaskCheckpoint; |
| 130 }; | 133 }; |
| 131 | 134 |
| 132 } // namespace blink | 135 } // namespace blink |
| 133 | 136 |
| 134 #endif // V8PerIsolateData_h | 137 #endif // V8PerIsolateData_h |
| OLD | NEW |