OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); | 208 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); |
209 | 209 |
210 Handle<Map> CopyMapDropDescriptors(Handle<Map> map); | 210 Handle<Map> CopyMapDropDescriptors(Handle<Map> map); |
211 | 211 |
212 // Copy the map adding more inobject properties if possible without | 212 // Copy the map adding more inobject properties if possible without |
213 // overflowing the instance size. | 213 // overflowing the instance size. |
214 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 214 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
215 | 215 |
216 Handle<Map> CopyMapDropTransitions(Handle<Map> map); | 216 Handle<Map> CopyMapDropTransitions(Handle<Map> map); |
217 | 217 |
218 Handle<Map> GetFastElementsMap(Handle<Map> map); | 218 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, |
219 | 219 ElementsKind elements_kind); |
220 Handle<Map> GetSlowElementsMap(Handle<Map> map); | |
221 | |
222 Handle<Map> GetElementsTransitionMap(Handle<Map> map, | |
223 ElementsKind elements_kind, | |
224 bool safe_to_add_transition); | |
225 | 220 |
226 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 221 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
227 | 222 |
228 // Numbers (eg, literals) are pretenured by the parser. | 223 // Numbers (eg, literals) are pretenured by the parser. |
229 Handle<Object> NewNumber(double value, | 224 Handle<Object> NewNumber(double value, |
230 PretenureFlag pretenure = NOT_TENURED); | 225 PretenureFlag pretenure = NOT_TENURED); |
231 | 226 |
232 Handle<Object> NewNumberFromInt(int value); | 227 Handle<Object> NewNumberFromInt(int value); |
233 Handle<Object> NewNumberFromUint(uint32_t value); | 228 Handle<Object> NewNumberFromUint(uint32_t value); |
234 | 229 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 // Update the map cache in the global context with (keys, map) | 457 // Update the map cache in the global context with (keys, map) |
463 Handle<MapCache> AddToMapCache(Handle<Context> context, | 458 Handle<MapCache> AddToMapCache(Handle<Context> context, |
464 Handle<FixedArray> keys, | 459 Handle<FixedArray> keys, |
465 Handle<Map> map); | 460 Handle<Map> map); |
466 }; | 461 }; |
467 | 462 |
468 | 463 |
469 } } // namespace v8::internal | 464 } } // namespace v8::internal |
470 | 465 |
471 #endif // V8_FACTORY_H_ | 466 #endif // V8_FACTORY_H_ |
OLD | NEW |