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

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, 1 month 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') | src/mark-compact.cc » ('J')
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 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 MUST_USE_RESULT MaybeObject* CreateInternalizedString( 1439 MUST_USE_RESULT MaybeObject* CreateInternalizedString(
1440 const char* str, int length, int hash); 1440 const char* str, int length, int hash);
1441 MUST_USE_RESULT MaybeObject* CreateInternalizedString(String* str); 1441 MUST_USE_RESULT MaybeObject* CreateInternalizedString(String* str);
1442 1442
1443 // Write barrier support for address[offset] = o. 1443 // Write barrier support for address[offset] = o.
1444 INLINE(void RecordWrite(Address address, int offset)); 1444 INLINE(void RecordWrite(Address address, int offset));
1445 1445
1446 // Write barrier support for address[start : start + len[ = o. 1446 // Write barrier support for address[start : start + len[ = o.
1447 INLINE(void RecordWrites(Address address, int start, int len)); 1447 INLINE(void RecordWrites(Address address, int start, int len));
1448 1448
1449 // Return true if object on heap have to be double aligned.
1450 INLINE(static bool MustBeDoubleAligned(HeapObject* object));
1451
1452 // Ensure object is 8-byte aligned after raw allocation.
1453 // Return aligned address. One word in allocated space is prefilled to
1454 // provide padding, so value of the size argument is amount of allocated
1455 // memory for the object that must be one word larger than actual size of
1456 // the object.
1457 INLINE(HeapObject* EnsureDoubleAligned(HeapObject* object, int size));
1458
1449 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; 1459 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT };
1450 inline HeapState gc_state() { return gc_state_; } 1460 inline HeapState gc_state() { return gc_state_; }
1451 1461
1452 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } 1462 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; }
1453 1463
1454 #ifdef DEBUG 1464 #ifdef DEBUG
1455 void set_allocation_timeout(int timeout) { 1465 void set_allocation_timeout(int timeout) {
1456 allocation_timeout_ = timeout; 1466 allocation_timeout_ = timeout;
1457 } 1467 }
1458 1468
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
3074 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3084 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3075 3085
3076 private: 3086 private:
3077 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3087 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3078 }; 3088 };
3079 #endif // DEBUG 3089 #endif // DEBUG
3080 3090
3081 } } // namespace v8::internal 3091 } } // namespace v8::internal
3082 3092
3083 #endif // V8_HEAP_H_ 3093 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | src/mark-compact.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698