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_H_ | 5 #ifndef V8_HEAP_H_ |
6 #define V8_HEAP_H_ | 6 #define V8_HEAP_H_ |
7 | 7 |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1460 | 1460 |
1461 // Allocated a HeapNumber from value. | 1461 // Allocated a HeapNumber from value. |
1462 MUST_USE_RESULT AllocationResult AllocateHeapNumber( | 1462 MUST_USE_RESULT AllocationResult AllocateHeapNumber( |
1463 double value, PretenureFlag pretenure = NOT_TENURED); | 1463 double value, PretenureFlag pretenure = NOT_TENURED); |
1464 | 1464 |
1465 // Allocate a byte array of the specified length | 1465 // Allocate a byte array of the specified length |
1466 MUST_USE_RESULT AllocationResult AllocateByteArray( | 1466 MUST_USE_RESULT AllocationResult AllocateByteArray( |
1467 int length, | 1467 int length, |
1468 PretenureFlag pretenure = NOT_TENURED); | 1468 PretenureFlag pretenure = NOT_TENURED); |
1469 | 1469 |
1470 // Allocates an arguments object - optionally with an elements array. | |
1471 MUST_USE_RESULT AllocationResult AllocateArgumentsObject( | |
1472 Object* callee, int length); | |
1473 | |
1474 // Copy the code and scope info part of the code object, but insert | 1470 // Copy the code and scope info part of the code object, but insert |
1475 // the provided data as the relocation information. | 1471 // the provided data as the relocation information. |
1476 MUST_USE_RESULT AllocationResult CopyCode(Code* code, | 1472 MUST_USE_RESULT AllocationResult CopyCode(Code* code, |
1477 Vector<byte> reloc_info); | 1473 Vector<byte> reloc_info); |
1478 | 1474 |
1479 MUST_USE_RESULT AllocationResult CopyCode(Code* code); | 1475 MUST_USE_RESULT AllocationResult CopyCode(Code* code); |
1480 | 1476 |
1481 // Allocates a fixed array initialized with undefined values | 1477 // Allocates a fixed array initialized with undefined values |
1482 MUST_USE_RESULT AllocationResult AllocateFixedArray( | 1478 MUST_USE_RESULT AllocationResult AllocateFixedArray( |
1483 int length, | 1479 int length, |
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2765 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2761 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2766 | 2762 |
2767 private: | 2763 private: |
2768 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2764 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2769 }; | 2765 }; |
2770 #endif // DEBUG | 2766 #endif // DEBUG |
2771 | 2767 |
2772 } } // namespace v8::internal | 2768 } } // namespace v8::internal |
2773 | 2769 |
2774 #endif // V8_HEAP_H_ | 2770 #endif // V8_HEAP_H_ |
OLD | NEW |