Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: Source/bindings/v8/V8PerIsolateData.h

Issue 13896017: Switch RegularExpression from YARR to V8 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove the test I added, the same kind of test was added in r148951 Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/bindings/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void clearShouldCollectGarbageSoon() { m_shouldCollectGarbageSoon = false; } 135 void clearShouldCollectGarbageSoon() { m_shouldCollectGarbageSoon = false; }
136 bool shouldCollectGarbageSoon() const { return m_shouldCollectGarbageSoon; } 136 bool shouldCollectGarbageSoon() const { return m_shouldCollectGarbageSoon; }
137 137
138 bool hasPrivateTemplate(WrapperWorldType, void* privatePointer); 138 bool hasPrivateTemplate(WrapperWorldType, void* privatePointer);
139 v8::Persistent<v8::FunctionTemplate> privateTemplate(WrapperWorldType, void* privatePointer, v8::InvocationCallback, v8::Handle<v8::Value> data, v8::Handle< v8::Signature>, int length = 0); 139 v8::Persistent<v8::FunctionTemplate> privateTemplate(WrapperWorldType, void* privatePointer, v8::InvocationCallback, v8::Handle<v8::Value> data, v8::Handle< v8::Signature>, int length = 0);
140 140
141 v8::Persistent<v8::FunctionTemplate> rawTemplate(WrapperTypeInfo*, WrapperWo rldType); 141 v8::Persistent<v8::FunctionTemplate> rawTemplate(WrapperTypeInfo*, WrapperWo rldType);
142 142
143 bool hasInstance(WrapperTypeInfo*, v8::Handle<v8::Value>, WrapperWorldType); 143 bool hasInstance(WrapperTypeInfo*, v8::Handle<v8::Value>, WrapperWorldType);
144 144
145 v8::Local<v8::Context> ensureRegexContext();
146
145 private: 147 private:
146 explicit V8PerIsolateData(v8::Isolate*); 148 explicit V8PerIsolateData(v8::Isolate*);
147 ~V8PerIsolateData(); 149 ~V8PerIsolateData();
148 static v8::Handle<v8::Value> constructorOfToString(const v8::Arguments&); 150 static v8::Handle<v8::Value> constructorOfToString(const v8::Arguments&);
149 151
150 v8::Isolate* m_isolate; 152 v8::Isolate* m_isolate;
151 TemplateMap m_rawTemplatesForMainWorld; 153 TemplateMap m_rawTemplatesForMainWorld;
152 TemplateMap m_rawTemplatesForNonMainWorld; 154 TemplateMap m_rawTemplatesForNonMainWorld;
153 TemplateMap m_templatesForMainWorld; 155 TemplateMap m_templatesForMainWorld;
154 TemplateMap m_templatesForNonMainWorld; 156 TemplateMap m_templatesForNonMainWorld;
155 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate; 157 ScopedPersistent<v8::FunctionTemplate> m_toStringTemplate;
156 v8::Persistent<v8::FunctionTemplate> m_lazyEventListenerToStringTemplate; 158 v8::Persistent<v8::FunctionTemplate> m_lazyEventListenerToStringTemplate;
157 OwnPtr<StringCache> m_stringCache; 159 OwnPtr<StringCache> m_stringCache;
158 OwnPtr<IntegerCache> m_integerCache; 160 OwnPtr<IntegerCache> m_integerCache;
159 ScopedPersistent<v8::Value> m_v8Null; 161 ScopedPersistent<v8::Value> m_v8Null;
160 162
161 Vector<DOMDataStore*> m_domDataList; 163 Vector<DOMDataStore*> m_domDataList;
162 DOMDataStore* m_workerDomDataStore; 164 DOMDataStore* m_workerDomDataStore;
163 165
164 OwnPtr<V8HiddenPropertyName> m_hiddenPropertyName; 166 OwnPtr<V8HiddenPropertyName> m_hiddenPropertyName;
165 ScopedPersistent<v8::Value> m_liveRoot; 167 ScopedPersistent<v8::Value> m_liveRoot;
166 ScopedPersistent<v8::Context> m_auxiliaryContext; 168 ScopedPersistent<v8::Context> m_regexContext;
167 169
168 bool m_constructorMode; 170 bool m_constructorMode;
169 friend class ConstructorMode; 171 friend class ConstructorMode;
170 172
171 int m_recursionLevel; 173 int m_recursionLevel;
172 174
173 #ifndef NDEBUG 175 #ifndef NDEBUG
174 int m_internalScriptRecursionLevel; 176 int m_internalScriptRecursionLevel;
175 #endif 177 #endif
176 OwnPtr<GCEventData> m_gcEventData; 178 OwnPtr<GCEventData> m_gcEventData;
177 bool m_shouldCollectGarbageSoon; 179 bool m_shouldCollectGarbageSoon;
178 }; 180 };
179 181
180 } // namespace WebCore 182 } // namespace WebCore
181 183
182 #endif // V8PerIsolateData_h 184 #endif // V8PerIsolateData_h
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/v8/V8PerIsolateData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698