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

Side by Side Diff: src/heap.h

Issue 12313131: Shrinking of PagedSpace is done only by sweeper. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 | 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 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 1377
1378 // Write barrier support for address[offset] = o. 1378 // Write barrier support for address[offset] = o.
1379 INLINE(void RecordWrite(Address address, int offset)); 1379 INLINE(void RecordWrite(Address address, int offset));
1380 1380
1381 // Write barrier support for address[start : start + len[ = o. 1381 // Write barrier support for address[start : start + len[ = o.
1382 INLINE(void RecordWrites(Address address, int start, int len)); 1382 INLINE(void RecordWrites(Address address, int start, int len));
1383 1383
1384 // Given an address occupied by a live code object, return that object. 1384 // Given an address occupied by a live code object, return that object.
1385 Object* FindCodeObject(Address a); 1385 Object* FindCodeObject(Address a);
1386 1386
1387 // Invoke Shrink on shrinkable spaces.
1388 void Shrink();
1389
1390 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; 1387 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT };
1391 inline HeapState gc_state() { return gc_state_; } 1388 inline HeapState gc_state() { return gc_state_; }
1392 1389
1393 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; } 1390 inline bool IsInGCPostProcessing() { return gc_post_processing_depth_ > 0; }
1394 1391
1395 #ifdef DEBUG 1392 #ifdef DEBUG
1396 bool IsAllocationAllowed() { return allocation_allowed_; } 1393 bool IsAllocationAllowed() { return allocation_allowed_; }
1397 inline bool allow_allocation(bool enable); 1394 inline bool allow_allocation(bool enable);
1398 1395
1399 bool disallow_allocation_failure() { 1396 bool disallow_allocation_failure() {
(...skipping 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
2948 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2945 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2949 2946
2950 private: 2947 private:
2951 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2948 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2952 }; 2949 };
2953 #endif // DEBUG 2950 #endif // DEBUG
2954 2951
2955 } } // namespace v8::internal 2952 } } // namespace v8::internal
2956 2953
2957 #endif // V8_HEAP_H_ 2954 #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