Chromium Code Reviews| 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 712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 723 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS, | 723 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS, |
| 724 PretenureFlag pretenure = NOT_TENURED); | 724 PretenureFlag pretenure = NOT_TENURED); |
| 725 | 725 |
| 726 MUST_USE_RESULT MaybeObject* AllocateJSArrayStorage( | 726 MUST_USE_RESULT MaybeObject* AllocateJSArrayStorage( |
| 727 JSArray* array, | 727 JSArray* array, |
| 728 int length, | 728 int length, |
| 729 int capacity, | 729 int capacity, |
| 730 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); | 730 ArrayStorageAllocationMode mode = DONT_INITIALIZE_ARRAY_ELEMENTS); |
| 731 | 731 |
| 732 // Allocate a JSArray with no elements | 732 // Allocate a JSArray with no elements |
| 733 MUST_USE_RESULT MaybeObject* AllocateJSArrayWithElements( | 733 Handle<JSArray> AllocateJSArrayWithElements( |
| 734 FixedArrayBase* array_base, | 734 Handle<FixedArrayBase> array_base, |
|
Yang
2014/04/07 07:20:48
We want to keep handlified code out of heap.cc. Re
Igor Sheludko
2014/04/07 09:29:17
Done.
| |
| 735 ElementsKind elements_kind, | 735 ElementsKind elements_kind, |
| 736 int length, | 736 int length, |
| 737 PretenureFlag pretenure = NOT_TENURED); | 737 PretenureFlag pretenure = NOT_TENURED); |
| 738 | 738 |
| 739 // Returns a deep copy of the JavaScript object. | 739 // Returns a deep copy of the JavaScript object. |
| 740 // Properties and elements are copied too. | 740 // Properties and elements are copied too. |
| 741 // Returns failure if allocation failed. | 741 // Returns failure if allocation failed. |
| 742 // Optionally takes an AllocationSite to be appended in an AllocationMemento. | 742 // Optionally takes an AllocationSite to be appended in an AllocationMemento. |
| 743 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source, | 743 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source, |
| 744 AllocationSite* site = NULL); | 744 AllocationSite* site = NULL); |
| (...skipping 2393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3138 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3138 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3139 | 3139 |
| 3140 private: | 3140 private: |
| 3141 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3141 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3142 }; | 3142 }; |
| 3143 #endif // DEBUG | 3143 #endif // DEBUG |
| 3144 | 3144 |
| 3145 } } // namespace v8::internal | 3145 } } // namespace v8::internal |
| 3146 | 3146 |
| 3147 #endif // V8_HEAP_H_ | 3147 #endif // V8_HEAP_H_ |
| OLD | NEW |