| 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 // Please note this function does not perform a garbage collection. | 614 // Please note this function does not perform a garbage collection. |
| 615 MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space); | 615 MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space); |
| 616 | 616 |
| 617 // Allocates a JS Map in the heap. | 617 // Allocates a JS Map in the heap. |
| 618 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 618 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 619 // failed. | 619 // failed. |
| 620 // Please note this function does not perform a garbage collection. | 620 // Please note this function does not perform a garbage collection. |
| 621 MUST_USE_RESULT MaybeObject* AllocateMap( | 621 MUST_USE_RESULT MaybeObject* AllocateMap( |
| 622 InstanceType instance_type, | 622 InstanceType instance_type, |
| 623 int instance_size, | 623 int instance_size, |
| 624 ElementsKind elements_kind = FAST_ELEMENTS); | 624 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); |
| 625 | 625 |
| 626 // Allocates a partial map for bootstrapping. | 626 // Allocates a partial map for bootstrapping. |
| 627 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, | 627 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, |
| 628 int instance_size); | 628 int instance_size); |
| 629 | 629 |
| 630 // Allocate a map for the specified function | 630 // Allocate a map for the specified function |
| 631 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun); | 631 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun); |
| 632 | 632 |
| 633 // Allocates an empty code cache. | 633 // Allocates an empty code cache. |
| 634 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); | 634 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); |
| (...skipping 2066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2701 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2701 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 2702 | 2702 |
| 2703 private: | 2703 private: |
| 2704 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2704 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2705 }; | 2705 }; |
| 2706 #endif // DEBUG || LIVE_OBJECT_LIST | 2706 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2707 | 2707 |
| 2708 } } // namespace v8::internal | 2708 } } // namespace v8::internal |
| 2709 | 2709 |
| 2710 #endif // V8_HEAP_H_ | 2710 #endif // V8_HEAP_H_ |
| OLD | NEW |