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

Side by Side Diff: src/heap.h

Issue 5862002: Version 3.0.2. (Closed)
Patch Set: Created 10 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
« ChangeLog ('K') | « src/full-codegen.h ('k') | 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 // scavenge since last new space expansion. 1112 // scavenge since last new space expansion.
1113 static int survived_since_last_expansion_; 1113 static int survived_since_last_expansion_;
1114 1114
1115 static int always_allocate_scope_depth_; 1115 static int always_allocate_scope_depth_;
1116 static int linear_allocation_scope_depth_; 1116 static int linear_allocation_scope_depth_;
1117 1117
1118 // For keeping track of context disposals. 1118 // For keeping track of context disposals.
1119 static int contexts_disposed_; 1119 static int contexts_disposed_;
1120 1120
1121 #if defined(V8_TARGET_ARCH_X64) 1121 #if defined(V8_TARGET_ARCH_X64)
1122 static const int kMaxObjectSizeInNewSpace = 1024*KB; 1122 static const int kMaxObjectSizeInNewSpace = 512*KB;
1123 #else 1123 #else
1124 static const int kMaxObjectSizeInNewSpace = 512*KB; 1124 static const int kMaxObjectSizeInNewSpace = 256*KB;
1125 #endif 1125 #endif
1126 1126
1127 static NewSpace new_space_; 1127 static NewSpace new_space_;
1128 static OldSpace* old_pointer_space_; 1128 static OldSpace* old_pointer_space_;
1129 static OldSpace* old_data_space_; 1129 static OldSpace* old_data_space_;
1130 static OldSpace* code_space_; 1130 static OldSpace* code_space_;
1131 static MapSpace* map_space_; 1131 static MapSpace* map_space_;
1132 static CellSpace* cell_space_; 1132 static CellSpace* cell_space_;
1133 static LargeObjectSpace* lo_space_; 1133 static LargeObjectSpace* lo_space_;
1134 static HeapState gc_state_; 1134 static HeapState gc_state_;
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 // Return whether this object should be retained. If NULL is returned the 2105 // Return whether this object should be retained. If NULL is returned the
2106 // object has no references. Otherwise the address of the retained object 2106 // object has no references. Otherwise the address of the retained object
2107 // should be returned as in some GC situations the object has been moved. 2107 // should be returned as in some GC situations the object has been moved.
2108 virtual Object* RetainAs(Object* object) = 0; 2108 virtual Object* RetainAs(Object* object) = 0;
2109 }; 2109 };
2110 2110
2111 2111
2112 } } // namespace v8::internal 2112 } } // namespace v8::internal
2113 2113
2114 #endif // V8_HEAP_H_ 2114 #endif // V8_HEAP_H_
OLDNEW
« ChangeLog ('K') | « src/full-codegen.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698