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