OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); | 173 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); |
174 | 174 |
175 static Handle<Map> CopyMapDropDescriptors(Handle<Map> map); | 175 static Handle<Map> CopyMapDropDescriptors(Handle<Map> map); |
176 | 176 |
177 // Copy the map adding more inobject properties if possible without | 177 // Copy the map adding more inobject properties if possible without |
178 // overflowing the instance size. | 178 // overflowing the instance size. |
179 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 179 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
180 | 180 |
181 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); | 181 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); |
182 | 182 |
| 183 static Handle<Map> GetFastElementsMap(Handle<Map> map); |
| 184 |
| 185 static Handle<Map> GetSlowElementsMap(Handle<Map> map); |
| 186 |
183 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 187 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
184 | 188 |
185 // Numbers (eg, literals) are pretenured by the parser. | 189 // Numbers (eg, literals) are pretenured by the parser. |
186 static Handle<Object> NewNumber(double value, | 190 static Handle<Object> NewNumber(double value, |
187 PretenureFlag pretenure = NOT_TENURED); | 191 PretenureFlag pretenure = NOT_TENURED); |
188 | 192 |
189 static Handle<Object> NewNumberFromInt(int value); | 193 static Handle<Object> NewNumberFromInt(int value); |
190 static Handle<Object> NewNumberFromUint(uint32_t value); | 194 static Handle<Object> NewNumberFromUint(uint32_t value); |
191 | 195 |
192 // These objects are used by the api to create env-independent data | 196 // These objects are used by the api to create env-independent data |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 // Update the map cache in the global context with (keys, map) | 398 // Update the map cache in the global context with (keys, map) |
395 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 399 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
396 Handle<FixedArray> keys, | 400 Handle<FixedArray> keys, |
397 Handle<Map> map); | 401 Handle<Map> map); |
398 }; | 402 }; |
399 | 403 |
400 | 404 |
401 } } // namespace v8::internal | 405 } } // namespace v8::internal |
402 | 406 |
403 #endif // V8_FACTORY_H_ | 407 #endif // V8_FACTORY_H_ |
OLD | NEW |