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.h

Issue 35103002: Align double array backing store during compaction and mark-sweep promotion. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/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 // 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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 1415
1416 // Print short heap statistics. 1416 // Print short heap statistics.
1417 void PrintShortHeapStatistics(); 1417 void PrintShortHeapStatistics();
1418 1418
1419 // Write barrier support for address[offset] = o. 1419 // Write barrier support for address[offset] = o.
1420 INLINE(void RecordWrite(Address address, int offset)); 1420 INLINE(void RecordWrite(Address address, int offset));
1421 1421
1422 // Write barrier support for address[start : start + len[ = o. 1422 // Write barrier support for address[start : start + len[ = o.
1423 INLINE(void RecordWrites(Address address, int start, int len)); 1423 INLINE(void RecordWrites(Address address, int start, int len));
1424 1424
1425 // Return true if object on heap have to be double aligned.
1426 INLINE(static bool MustBeDoubleAligned(HeapObject* object));
1427
1428 // Ensure object is 8-byte aligned after raw allocation.
1429 // Return aligned address. One word in allocated space is prefilled to
1430 // provide padding, so value of the size argument is amount of allocated
1431 // memory for the object that must be one word larger than actual size of
1432 // the object.
1433 INLINE(HeapObject* EnsureDoubleAligned(HeapObject* object, int size));
1434
1425 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; 1435 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT };
1426 inline HeapState gc_state() { return gc_state_; } 1436 inline HeapState gc_state() { return gc_state_; }
1427 1437
1428 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } 1438 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; }
1429 1439
1430 #ifdef DEBUG 1440 #ifdef DEBUG
1431 void set_allocation_timeout(int timeout) { 1441 void set_allocation_timeout(int timeout) {
1432 allocation_timeout_ = timeout; 1442 allocation_timeout_ = timeout;
1433 } 1443 }
1434 1444
(...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3090 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3081 3091
3082 private: 3092 private:
3083 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3093 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3084 }; 3094 };
3085 #endif // DEBUG 3095 #endif // DEBUG
3086 3096
3087 } } // namespace v8::internal 3097 } } // namespace v8::internal
3088 3098
3089 #endif // V8_HEAP_H_ 3099 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698