Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/heap/heap.h

Issue 882633002: Reland "Only use FreeSpace objects in the free list" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix windows build Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698