| 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 EnsureCanContainElements(Handle<JSArray> array, | |
| 332 Handle<FixedArrayBase> elements, | |
| 333 uint32_t length, | |
| 334 EnsureElementsMode mode); | |
| 335 | |
| 336 Handle<JSArrayBuffer> NewJSArrayBuffer(); | 331 Handle<JSArrayBuffer> NewJSArrayBuffer(); |
| 337 | 332 |
| 338 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); | 333 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); |
| 339 | 334 |
| 340 Handle<JSDataView> NewJSDataView(); | 335 Handle<JSDataView> NewJSDataView(); |
| 341 | 336 |
| 342 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 337 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
| 343 | 338 |
| 344 // Change the type of the argument into a JS object/function and reinitialize. | 339 // Change the type of the argument into a JS object/function and reinitialize. |
| 345 void BecomeJSObject(Handle<JSReceiver> object); | 340 void BecomeJSObject(Handle<JSReceiver> object); |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 } | 661 } |
| 667 | 662 |
| 668 private: | 663 private: |
| 669 Isolate* isolate_; | 664 Isolate* isolate_; |
| 670 }; | 665 }; |
| 671 | 666 |
| 672 | 667 |
| 673 } } // namespace v8::internal | 668 } } // namespace v8::internal |
| 674 | 669 |
| 675 #endif // V8_FACTORY_H_ | 670 #endif // V8_FACTORY_H_ |
| OLD | NEW |