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

Side by Side Diff: src/heap.h

Issue 6685052: Version 3.2.2. Fixed a number of crash and correctness bugs. Improved Cranksh... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 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 | « src/global-handles.cc ('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 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1131 static inline bool ShouldBePromoted(Address old_address, int object_size); 1131 static inline bool ShouldBePromoted(Address old_address, int object_size);
1132 1132
1133 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } 1133 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; }
1134 1134
1135 static void ClearJSFunctionResultCaches(); 1135 static void ClearJSFunctionResultCaches();
1136 1136
1137 static void ClearNormalizedMapCaches(); 1137 static void ClearNormalizedMapCaches();
1138 1138
1139 static GCTracer* tracer() { return tracer_; } 1139 static GCTracer* tracer() { return tracer_; }
1140 1140
1141 static void CallGlobalGCPrologueCallback() {
1142 if (global_gc_prologue_callback_ != NULL) global_gc_prologue_callback_();
1143 }
1144
1145 static void CallGlobalGCEpilogueCallback() {
1146 if (global_gc_epilogue_callback_ != NULL) global_gc_epilogue_callback_();
1147 }
1148
1141 private: 1149 private:
1142 static int reserved_semispace_size_; 1150 static int reserved_semispace_size_;
1143 static int max_semispace_size_; 1151 static int max_semispace_size_;
1144 static int initial_semispace_size_; 1152 static int initial_semispace_size_;
1145 static intptr_t max_old_generation_size_; 1153 static intptr_t max_old_generation_size_;
1146 static intptr_t max_executable_size_; 1154 static intptr_t max_executable_size_;
1147 static intptr_t code_range_size_; 1155 static intptr_t code_range_size_;
1148 1156
1149 // For keeping track of how much data has survived 1157 // For keeping track of how much data has survived
1150 // scavenge since last new space expansion. 1158 // scavenge since last new space expansion.
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2211 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2204 2212
2205 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2213 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2206 }; 2214 };
2207 #endif // DEBUG || LIVE_OBJECT_LIST 2215 #endif // DEBUG || LIVE_OBJECT_LIST
2208 2216
2209 2217
2210 } } // namespace v8::internal 2218 } } // namespace v8::internal
2211 2219
2212 #endif // V8_HEAP_H_ 2220 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/global-handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698