Changeset 155177 in webkit for trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h
- Timestamp:
- Sep 5, 2013, 10:50:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h
r154916 r155177 49 49 class ArrayPrototype; 50 50 class BooleanPrototype; 51 class DatePrototype;52 51 class Debugger; 53 52 class ErrorConstructor; … … 64 63 class JSStack; 65 64 class LLIntOffsetsExtractor; 66 class MapPrototype;67 65 class NativeErrorConstructor; 68 66 class ProgramCodeBlock; … … 70 68 class RegExpConstructor; 71 69 class RegExpPrototype; 72 class SetPrototype;73 70 class SourceCode; 74 71 struct ActivationStackNode; 75 72 struct HashTable; 73 74 #define FOR_EACH_SIMPLE_BUILTIN_TYPE(macro) \ 75 macro(Set, set, set, JSSet, Set) \ 76 macro(Map, map, map, JSMap, Map) \ 77 macro(Date, date, date, DateInstance, Date) \ 78 macro(String, string, stringObject, StringObject, String) \ 79 macro(Boolean, boolean, booleanObject, BooleanObject, Boolean) \ 80 macro(Number, number, numberObject, NumberObject, Number) \ 81 macro(Error, error, error, ErrorInstance, Error) \ 82 macro(JSArrayBuffer, arrayBuffer, arrayBuffer, JSArrayBuffer, ArrayBuffer) \ 83 84 #define DECLARE_SIMPLE_BUILTIN_TYPE(capitalName, lowerName, properName, instanceType, jsName) \ 85 class JS ## capitalName; \ 86 class capitalName ## Prototype; \ 87 class capitalName ## Constructor; 88 89 FOR_EACH_SIMPLE_BUILTIN_TYPE(DECLARE_SIMPLE_BUILTIN_TYPE) 90 91 #undef DECLARE_SIMPLE_BUILTIN_TYPE 76 92 77 93 typedef Vector<ExecState*, 16> ExecStateStack; … … 145 161 WriteBarrier<FunctionPrototype> m_functionPrototype; 146 162 WriteBarrier<ArrayPrototype> m_arrayPrototype; 147 WriteBarrier<BooleanPrototype> m_booleanPrototype;148 WriteBarrier<StringPrototype> m_stringPrototype;149 WriteBarrier<NumberPrototype> m_numberPrototype;150 WriteBarrier<DatePrototype> m_datePrototype;151 163 WriteBarrier<RegExpPrototype> m_regExpPrototype; 152 WriteBarrier<ErrorPrototype> m_errorPrototype;153 164 WriteBarrier<JSPromisePrototype> m_promisePrototype; 154 165 WriteBarrier<JSPromiseResolverPrototype> m_promiseResolverPrototype; 155 WriteBarrier<MapPrototype> m_mapPrototype;156 WriteBarrier<SetPrototype> m_setPrototype;157 166 158 167 WriteBarrier<Structure> m_withScopeStructure; … … 166 175 // Lists the structures we should use during allocation for these particular indexing shapes. 167 176 WriteBarrier<Structure> m_arrayStructureForIndexingShapeDuringAllocation[NumberOfIndexingShapes]; 168 169 WriteBarrier<Structure> m_booleanObjectStructure; 177 170 178 WriteBarrier<Structure> m_callbackConstructorStructure; 171 179 WriteBarrier<Structure> m_callbackFunctionStructure; … … 175 183 WriteBarrier<Structure> m_objcWrapperObjectStructure; 176 184 #endif 177 WriteBarrier<Structure> m_dateStructure;178 185 WriteBarrier<Structure> m_nullPrototypeObjectStructure; 179 WriteBarrier<Structure> m_errorStructure;180 186 WriteBarrier<Structure> m_functionStructure; 181 187 WriteBarrier<Structure> m_boundFunctionStructure; 182 188 WriteBarrier<Structure> m_namedFunctionStructure; 183 189 PropertyOffset m_functionNameOffset; 184 WriteBarrier<Structure> m_numberObjectStructure;185 190 WriteBarrier<Structure> m_privateNameStructure; 186 191 WriteBarrier<Structure> m_regExpMatchesArrayStructure; 187 192 WriteBarrier<Structure> m_regExpStructure; 188 WriteBarrier<Structure> m_stringObjectStructure;189 193 WriteBarrier<Structure> m_internalFunctionStructure; 190 194 … … 197 201 198 202 WriteBarrier<Structure> m_mapDataStructure; 199 WriteBarrier<Structure> m_mapStructure; 200 WriteBarrier<Structure> m_setStructure; 201 202 WriteBarrier<JSArrayBufferPrototype> m_arrayBufferPrototype; 203 WriteBarrier<Structure> m_arrayBufferStructure; 204 203 204 #define DEFINE_STORAGE_FOR_SIMPLE_TYPE(capitalName, lowerName, properName, instanceType, jsName) \ 205 WriteBarrier<capitalName ## Prototype> m_ ## lowerName ## Prototype; \ 206 WriteBarrier<Structure> m_ ## properName ## Structure; 207 208 FOR_EACH_SIMPLE_BUILTIN_TYPE(DEFINE_STORAGE_FOR_SIMPLE_TYPE) 209 210 #undef DEFINE_STORAGE_FOR_SIMPLE_TYPE 211 205 212 struct TypedArrayData { 206 213 WriteBarrier<JSObject> prototype; … … 405 412 406 413 JSArrayBufferPrototype* arrayBufferPrototype() const { return m_arrayBufferPrototype.get(); } 407 Structure* arrayBufferStructure() const { return m_arrayBufferStructure.get(); } 408 414 415 #define DEFINE_ACCESSORS_FOR_SIMPLE_TYPE(capitalName, lowerName, properName, instanceType, jsName) \ 416 Structure* properName ## Structure() { return m_ ## properName ## Structure.get(); } 417 418 FOR_EACH_SIMPLE_BUILTIN_TYPE(DEFINE_ACCESSORS_FOR_SIMPLE_TYPE) 419 420 #undef DEFINE_ACCESSORS_FOR_SIMPLE_TYPE 421 409 422 Structure* typedArrayStructure(TypedArrayType type) const 410 423 {
Note:
See TracChangeset
for help on using the changeset viewer.