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 566 matching lines...) Loading... |
577 ElementsKind elements_kind, | 577 ElementsKind elements_kind, |
578 int length, | 578 int length, |
579 int capacity, | 579 int capacity, |
580 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS, | 580 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS, |
581 PretenureFlag pretenure = NOT_TENURED); | 581 PretenureFlag pretenure = NOT_TENURED); |
582 | 582 |
583 // Allocate a JSArray with no elements | 583 // Allocate a JSArray with no elements |
584 MUST_USE_RESULT MaybeObject* AllocateJSArrayWithElements( | 584 MUST_USE_RESULT MaybeObject* AllocateJSArrayWithElements( |
585 FixedArrayBase* array_base, | 585 FixedArrayBase* array_base, |
586 ElementsKind elements_kind, | 586 ElementsKind elements_kind, |
| 587 int length, |
587 PretenureFlag pretenure = NOT_TENURED); | 588 PretenureFlag pretenure = NOT_TENURED); |
588 | 589 |
589 // Allocates and initializes a new global object based on a constructor. | 590 // Allocates and initializes a new global object based on a constructor. |
590 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 591 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
591 // failed. | 592 // failed. |
592 // Please note this does not perform a garbage collection. | 593 // Please note this does not perform a garbage collection. |
593 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor); | 594 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor); |
594 | 595 |
595 // Returns a deep copy of the JavaScript object. | 596 // Returns a deep copy of the JavaScript object. |
596 // Properties and elements are copied too. | 597 // Properties and elements are copied too. |
(...skipping 2231 matching lines...) Loading... |
2828 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2829 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2829 | 2830 |
2830 private: | 2831 private: |
2831 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2832 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2832 }; | 2833 }; |
2833 #endif // DEBUG || LIVE_OBJECT_LIST | 2834 #endif // DEBUG || LIVE_OBJECT_LIST |
2834 | 2835 |
2835 } } // namespace v8::internal | 2836 } } // namespace v8::internal |
2836 | 2837 |
2837 #endif // V8_HEAP_H_ | 2838 #endif // V8_HEAP_H_ |
OLD | NEW |