| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_HEAP_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
| 6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1642 MUST_USE_RESULT AllocationResult | 1642 MUST_USE_RESULT AllocationResult |
| 1643 AllocateJSObject(JSFunction* constructor, | 1643 AllocateJSObject(JSFunction* constructor, |
| 1644 PretenureFlag pretenure = NOT_TENURED, | 1644 PretenureFlag pretenure = NOT_TENURED, |
| 1645 AllocationSite* allocation_site = NULL); | 1645 AllocationSite* allocation_site = NULL); |
| 1646 | 1646 |
| 1647 // Allocates and initializes a new JavaScript object based on a map. | 1647 // Allocates and initializes a new JavaScript object based on a map. |
| 1648 // Passing an allocation site means that a memento will be created that | 1648 // Passing an allocation site means that a memento will be created that |
| 1649 // points to the site. | 1649 // points to the site. |
| 1650 MUST_USE_RESULT AllocationResult | 1650 MUST_USE_RESULT AllocationResult |
| 1651 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED, | 1651 AllocateJSObjectFromMap(Map* map, PretenureFlag pretenure = NOT_TENURED, |
| 1652 bool alloc_props = true, | |
| 1653 AllocationSite* allocation_site = NULL); | 1652 AllocationSite* allocation_site = NULL); |
| 1654 | 1653 |
| 1655 // Allocates a HeapNumber from value. | 1654 // Allocates a HeapNumber from value. |
| 1656 MUST_USE_RESULT AllocationResult | 1655 MUST_USE_RESULT AllocationResult |
| 1657 AllocateHeapNumber(double value, MutableMode mode = IMMUTABLE, | 1656 AllocateHeapNumber(double value, MutableMode mode = IMMUTABLE, |
| 1658 PretenureFlag pretenure = NOT_TENURED); | 1657 PretenureFlag pretenure = NOT_TENURED); |
| 1659 | 1658 |
| 1660 // Allocates a Float32x4 from the given lane values. | 1659 // Allocates a Float32x4 from the given lane values. |
| 1661 MUST_USE_RESULT AllocationResult | 1660 MUST_USE_RESULT AllocationResult |
| 1662 AllocateFloat32x4(float w, float x, float y, float z, | 1661 AllocateFloat32x4(float w, float x, float y, float z, |
| (...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2867 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2866 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 2868 | 2867 |
| 2869 private: | 2868 private: |
| 2870 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2869 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2871 }; | 2870 }; |
| 2872 #endif // DEBUG | 2871 #endif // DEBUG |
| 2873 } | 2872 } |
| 2874 } // namespace v8::internal | 2873 } // namespace v8::internal |
| 2875 | 2874 |
| 2876 #endif // V8_HEAP_HEAP_H_ | 2875 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |