| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 Handle<FixedArray> NewFixedArray( | 43 Handle<FixedArray> NewFixedArray( |
| 44 int size, | 44 int size, |
| 45 PretenureFlag pretenure = NOT_TENURED); | 45 PretenureFlag pretenure = NOT_TENURED); |
| 46 | 46 |
| 47 // Allocate a new fixed array with non-existing entries (the hole). | 47 // Allocate a new fixed array with non-existing entries (the hole). |
| 48 Handle<FixedArray> NewFixedArrayWithHoles( | 48 Handle<FixedArray> NewFixedArrayWithHoles( |
| 49 int size, | 49 int size, |
| 50 PretenureFlag pretenure = NOT_TENURED); | 50 PretenureFlag pretenure = NOT_TENURED); |
| 51 | 51 |
| 52 // Allocate a new uninitialized fixed double array. | 52 // Allocate a new uninitialized fixed double array. |
| 53 Handle<FixedArray> NewFixedDoubleArray( | 53 Handle<FixedDoubleArray> NewFixedDoubleArray( |
| 54 int size, | 54 int size, |
| 55 PretenureFlag pretenure = NOT_TENURED); | 55 PretenureFlag pretenure = NOT_TENURED); |
| 56 | 56 |
| 57 Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); | 57 Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); |
| 58 | 58 |
| 59 Handle<StringDictionary> NewStringDictionary(int at_least_space_for); | 59 Handle<StringDictionary> NewStringDictionary(int at_least_space_for); |
| 60 | 60 |
| 61 Handle<ObjectHashSet> NewObjectHashSet(int at_least_space_for); |
| 62 |
| 61 Handle<ObjectHashTable> NewObjectHashTable(int at_least_space_for); | 63 Handle<ObjectHashTable> NewObjectHashTable(int at_least_space_for); |
| 62 | 64 |
| 63 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); | 65 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); |
| 64 Handle<DeoptimizationInputData> NewDeoptimizationInputData( | 66 Handle<DeoptimizationInputData> NewDeoptimizationInputData( |
| 65 int deopt_entry_count, | 67 int deopt_entry_count, |
| 66 PretenureFlag pretenure); | 68 PretenureFlag pretenure); |
| 67 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( | 69 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( |
| 68 int deopt_entry_count, | 70 int deopt_entry_count, |
| 69 PretenureFlag pretenure); | 71 PretenureFlag pretenure); |
| 70 | 72 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // overflowing the instance size. | 217 // overflowing the instance size. |
| 216 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 218 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
| 217 | 219 |
| 218 Handle<Map> CopyMapDropTransitions(Handle<Map> map); | 220 Handle<Map> CopyMapDropTransitions(Handle<Map> map); |
| 219 | 221 |
| 220 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, | 222 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, |
| 221 ElementsKind elements_kind); | 223 ElementsKind elements_kind); |
| 222 | 224 |
| 223 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 225 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
| 224 | 226 |
| 227 Handle<FixedDoubleArray> CopyFixedDoubleArray( |
| 228 Handle<FixedDoubleArray> array); |
| 229 |
| 225 // Numbers (eg, literals) are pretenured by the parser. | 230 // Numbers (eg, literals) are pretenured by the parser. |
| 226 Handle<Object> NewNumber(double value, | 231 Handle<Object> NewNumber(double value, |
| 227 PretenureFlag pretenure = NOT_TENURED); | 232 PretenureFlag pretenure = NOT_TENURED); |
| 228 | 233 |
| 229 Handle<Object> NewNumberFromInt(int value); | 234 Handle<Object> NewNumberFromInt(int value); |
| 230 Handle<Object> NewNumberFromUint(uint32_t value); | 235 Handle<Object> NewNumberFromUint(uint32_t value); |
| 231 | 236 |
| 232 // These objects are used by the api to create env-independent data | 237 // These objects are used by the api to create env-independent data |
| 233 // structures in the heap. | 238 // structures in the heap. |
| 234 Handle<JSObject> NewNeanderObject(); | 239 Handle<JSObject> NewNeanderObject(); |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 // Update the map cache in the global context with (keys, map) | 479 // Update the map cache in the global context with (keys, map) |
| 475 Handle<MapCache> AddToMapCache(Handle<Context> context, | 480 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 476 Handle<FixedArray> keys, | 481 Handle<FixedArray> keys, |
| 477 Handle<Map> map); | 482 Handle<Map> map); |
| 478 }; | 483 }; |
| 479 | 484 |
| 480 | 485 |
| 481 } } // namespace v8::internal | 486 } } // namespace v8::internal |
| 482 | 487 |
| 483 #endif // V8_FACTORY_H_ | 488 #endif // V8_FACTORY_H_ |
| OLD | NEW |