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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 Handle<FixedArrayBase> elements, | 321 Handle<FixedArrayBase> elements, |
322 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 322 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
323 PretenureFlag pretenure = NOT_TENURED); | 323 PretenureFlag pretenure = NOT_TENURED); |
324 | 324 |
325 void SetElementsCapacityAndLength(Handle<JSArray> array, | 325 void SetElementsCapacityAndLength(Handle<JSArray> array, |
326 int capacity, | 326 int capacity, |
327 int length); | 327 int length); |
328 | 328 |
329 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); | 329 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); |
330 | 330 |
331 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); | |
332 void EnsureCanContainElements(Handle<JSArray> array, | 331 void EnsureCanContainElements(Handle<JSArray> array, |
333 Handle<FixedArrayBase> elements, | 332 Handle<FixedArrayBase> elements, |
334 uint32_t length, | 333 uint32_t length, |
335 EnsureElementsMode mode); | 334 EnsureElementsMode mode); |
336 | 335 |
337 Handle<JSArrayBuffer> NewJSArrayBuffer(); | 336 Handle<JSArrayBuffer> NewJSArrayBuffer(); |
338 | 337 |
339 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); | 338 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); |
340 | 339 |
341 Handle<JSDataView> NewJSDataView(); | 340 Handle<JSDataView> NewJSDataView(); |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 } | 640 } |
642 | 641 |
643 private: | 642 private: |
644 Isolate* isolate_; | 643 Isolate* isolate_; |
645 }; | 644 }; |
646 | 645 |
647 | 646 |
648 } } // namespace v8::internal | 647 } } // namespace v8::internal |
649 | 648 |
650 #endif // V8_FACTORY_H_ | 649 #endif // V8_FACTORY_H_ |
OLD | NEW |