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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 Handle<JSArray> NewJSArray( | 277 Handle<JSArray> NewJSArray( |
278 int capacity, | 278 int capacity, |
279 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 279 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
280 PretenureFlag pretenure = NOT_TENURED); | 280 PretenureFlag pretenure = NOT_TENURED); |
281 | 281 |
282 Handle<JSArray> NewJSArrayWithElements( | 282 Handle<JSArray> NewJSArrayWithElements( |
283 Handle<FixedArrayBase> elements, | 283 Handle<FixedArrayBase> elements, |
284 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 284 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
285 PretenureFlag pretenure = NOT_TENURED); | 285 PretenureFlag pretenure = NOT_TENURED); |
286 | 286 |
| 287 Handle<JSArray> NewEmptyJSArray( |
| 288 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
| 289 PretenureFlag pretenure = NOT_TENURED); |
| 290 |
287 void SetElementsCapacityAndLength(Handle<JSArray> array, | 291 void SetElementsCapacityAndLength(Handle<JSArray> array, |
288 int capacity, | 292 int capacity, |
289 int length); | 293 int length); |
290 | 294 |
291 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); | 295 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); |
292 | 296 |
293 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); | 297 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); |
294 void EnsureCanContainElements(Handle<JSArray> array, | 298 void EnsureCanContainElements(Handle<JSArray> array, |
295 Handle<FixedArrayBase> elements, | 299 Handle<FixedArrayBase> elements, |
296 uint32_t length, | 300 uint32_t length, |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 // Update the map cache in the native context with (keys, map) | 511 // Update the map cache in the native context with (keys, map) |
508 Handle<MapCache> AddToMapCache(Handle<Context> context, | 512 Handle<MapCache> AddToMapCache(Handle<Context> context, |
509 Handle<FixedArray> keys, | 513 Handle<FixedArray> keys, |
510 Handle<Map> map); | 514 Handle<Map> map); |
511 }; | 515 }; |
512 | 516 |
513 | 517 |
514 } } // namespace v8::internal | 518 } } // namespace v8::internal |
515 | 519 |
516 #endif // V8_FACTORY_H_ | 520 #endif // V8_FACTORY_H_ |
OLD | NEW |