| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 return NewJSArrayWithElements( | 380 return NewJSArrayWithElements( |
| 381 elements, elements_kind, elements->length(), pretenure); | 381 elements, elements_kind, elements->length(), pretenure); |
| 382 } | 382 } |
| 383 | 383 |
| 384 void NewJSArrayStorage( | 384 void NewJSArrayStorage( |
| 385 Handle<JSArray> array, | 385 Handle<JSArray> array, |
| 386 int length, | 386 int length, |
| 387 int capacity, | 387 int capacity, |
| 388 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); | 388 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); |
| 389 | 389 |
| 390 void SetElementsCapacityAndLength(Handle<JSArray> array, | |
| 391 int capacity, | |
| 392 int length); | |
| 393 | |
| 394 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); | 390 Handle<JSGeneratorObject> NewJSGeneratorObject(Handle<JSFunction> function); |
| 395 | 391 |
| 396 Handle<JSArrayBuffer> NewJSArrayBuffer(); | 392 Handle<JSArrayBuffer> NewJSArrayBuffer(); |
| 397 | 393 |
| 398 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); | 394 Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); |
| 399 | 395 |
| 400 Handle<JSDataView> NewJSDataView(); | 396 Handle<JSDataView> NewJSDataView(); |
| 401 | 397 |
| 402 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 398 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
| 403 | 399 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 isolate()); | 628 isolate()); |
| 633 } else { | 629 } else { |
| 634 return NewNumber(static_cast<double>(value), pretenure); | 630 return NewNumber(static_cast<double>(value), pretenure); |
| 635 } | 631 } |
| 636 } | 632 } |
| 637 | 633 |
| 638 | 634 |
| 639 } } // namespace v8::internal | 635 } } // namespace v8::internal |
| 640 | 636 |
| 641 #endif // V8_FACTORY_H_ | 637 #endif // V8_FACTORY_H_ |
| OLD | NEW |