OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // Copy the map adding more inobject properties if possible without | 232 // Copy the map adding more inobject properties if possible without |
233 // overflowing the instance size. | 233 // overflowing the instance size. |
234 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 234 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
235 Handle<Map> CopyMap(Handle<Map> map); | 235 Handle<Map> CopyMap(Handle<Map> map); |
236 | 236 |
237 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, | 237 Handle<Map> GetElementsTransitionMap(Handle<JSObject> object, |
238 ElementsKind elements_kind); | 238 ElementsKind elements_kind); |
239 | 239 |
240 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 240 Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
241 | 241 |
| 242 Handle<FixedArray> CopySizeFixedArray(Handle<FixedArray> array, |
| 243 int new_length); |
| 244 |
242 Handle<FixedDoubleArray> CopyFixedDoubleArray( | 245 Handle<FixedDoubleArray> CopyFixedDoubleArray( |
243 Handle<FixedDoubleArray> array); | 246 Handle<FixedDoubleArray> array); |
244 | 247 |
245 // Numbers (e.g. literals) are pretenured by the parser. | 248 // Numbers (e.g. literals) are pretenured by the parser. |
246 Handle<Object> NewNumber(double value, | 249 Handle<Object> NewNumber(double value, |
247 PretenureFlag pretenure = NOT_TENURED); | 250 PretenureFlag pretenure = NOT_TENURED); |
248 | 251 |
249 Handle<Object> NewNumberFromInt(int32_t value, | 252 Handle<Object> NewNumberFromInt(int32_t value, |
250 PretenureFlag pretenure = NOT_TENURED); | 253 PretenureFlag pretenure = NOT_TENURED); |
251 Handle<Object> NewNumberFromUint(uint32_t value, | 254 Handle<Object> NewNumberFromUint(uint32_t value, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 Handle<Map> function_map, | 321 Handle<Map> function_map, |
319 PretenureFlag pretenure); | 322 PretenureFlag pretenure); |
320 | 323 |
321 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 324 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
322 Handle<SharedFunctionInfo> function_info, | 325 Handle<SharedFunctionInfo> function_info, |
323 Handle<Context> context, | 326 Handle<Context> context, |
324 PretenureFlag pretenure = TENURED); | 327 PretenureFlag pretenure = TENURED); |
325 | 328 |
326 Handle<ScopeInfo> NewScopeInfo(int length); | 329 Handle<ScopeInfo> NewScopeInfo(int length); |
327 | 330 |
| 331 Handle<JSObject> NewExternal(void* value); |
| 332 |
328 Handle<Code> NewCode(const CodeDesc& desc, | 333 Handle<Code> NewCode(const CodeDesc& desc, |
329 Code::Flags flags, | 334 Code::Flags flags, |
330 Handle<Object> self_reference, | 335 Handle<Object> self_reference, |
331 bool immovable = false); | 336 bool immovable = false); |
332 | 337 |
333 Handle<Code> CopyCode(Handle<Code> code); | 338 Handle<Code> CopyCode(Handle<Code> code); |
334 | 339 |
335 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 340 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
336 | 341 |
337 Handle<Object> ToObject(Handle<Object> object); | 342 Handle<Object> ToObject(Handle<Object> object); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 // Update the map cache in the native context with (keys, map) | 512 // Update the map cache in the native context with (keys, map) |
508 Handle<MapCache> AddToMapCache(Handle<Context> context, | 513 Handle<MapCache> AddToMapCache(Handle<Context> context, |
509 Handle<FixedArray> keys, | 514 Handle<FixedArray> keys, |
510 Handle<Map> map); | 515 Handle<Map> map); |
511 }; | 516 }; |
512 | 517 |
513 | 518 |
514 } } // namespace v8::internal | 519 } } // namespace v8::internal |
515 | 520 |
516 #endif // V8_FACTORY_H_ | 521 #endif // V8_FACTORY_H_ |
OLD | NEW |