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 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
685 // Optionally takes an AllocationSite to be appended in an AllocationMemento. | 685 // Optionally takes an AllocationSite to be appended in an AllocationMemento. |
686 MUST_USE_RESULT AllocationResult | 686 MUST_USE_RESULT AllocationResult |
687 CopyJSObject(JSObject* source, AllocationSite* site = NULL); | 687 CopyJSObject(JSObject* source, AllocationSite* site = NULL); |
688 | 688 |
689 // Clear the Instanceof cache (used when a prototype changes). | 689 // Clear the Instanceof cache (used when a prototype changes). |
690 inline void ClearInstanceofCache(); | 690 inline void ClearInstanceofCache(); |
691 | 691 |
692 // Iterates the whole code space to clear all ICs of the given kind. | 692 // Iterates the whole code space to clear all ICs of the given kind. |
693 void ClearAllICsByKind(Code::Kind kind); | 693 void ClearAllICsByKind(Code::Kind kind); |
694 | 694 |
695 // For use during bootup. | 695 // FreeSpace objects have a null map after deserialization. Update the map. |
696 void RepairFreeListsAfterBoot(); | 696 void RepairFreeListsAfterDeserialization(); |
697 | 697 |
698 template <typename T> | 698 template <typename T> |
699 static inline bool IsOneByte(T t, int chars); | 699 static inline bool IsOneByte(T t, int chars); |
700 | 700 |
701 // Move len elements within a given array from src_index index to dst_index | 701 // Move len elements within a given array from src_index index to dst_index |
702 // index. | 702 // index. |
703 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); | 703 void MoveElements(FixedArray* array, int dst_index, int src_index, int len); |
704 | 704 |
705 // Sloppy mode arguments object size. | 705 // Sloppy mode arguments object size. |
706 static const int kSloppyArgumentsObjectSize = | 706 static const int kSloppyArgumentsObjectSize = |
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2584 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 2584 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
2585 | 2585 |
2586 private: | 2586 private: |
2587 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2587 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2588 }; | 2588 }; |
2589 #endif // DEBUG | 2589 #endif // DEBUG |
2590 } | 2590 } |
2591 } // namespace v8::internal | 2591 } // namespace v8::internal |
2592 | 2592 |
2593 #endif // V8_HEAP_HEAP_H_ | 2593 #endif // V8_HEAP_HEAP_H_ |
OLD | NEW |