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

Side by Side Diff: src/heap.h

Issue 6626043: Add an interface for an embedder to provide information about native (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix GetCopy 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
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 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 static inline bool ShouldBePromoted(Address old_address, int object_size); 1134 static inline bool ShouldBePromoted(Address old_address, int object_size);
1135 1135
1136 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } 1136 static int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; }
1137 1137
1138 static void ClearJSFunctionResultCaches(); 1138 static void ClearJSFunctionResultCaches();
1139 1139
1140 static void ClearNormalizedMapCaches(); 1140 static void ClearNormalizedMapCaches();
1141 1141
1142 static GCTracer* tracer() { return tracer_; } 1142 static GCTracer* tracer() { return tracer_; }
1143 1143
1144 static void CallGlobalGCPrologueCallback() {
1145 if (global_gc_prologue_callback_ != NULL) global_gc_prologue_callback_();
1146 }
1147
1148 static void CallGlobalGCEpilogueCallback() {
1149 if (global_gc_epilogue_callback_ != NULL) global_gc_epilogue_callback_();
1150 }
1151
1144 private: 1152 private:
1145 static int reserved_semispace_size_; 1153 static int reserved_semispace_size_;
1146 static int max_semispace_size_; 1154 static int max_semispace_size_;
1147 static int initial_semispace_size_; 1155 static int initial_semispace_size_;
1148 static intptr_t max_old_generation_size_; 1156 static intptr_t max_old_generation_size_;
1149 static intptr_t max_executable_size_; 1157 static intptr_t max_executable_size_;
1150 static intptr_t code_range_size_; 1158 static intptr_t code_range_size_;
1151 1159
1152 // For keeping track of how much data has survived 1160 // For keeping track of how much data has survived
1153 // scavenge since last new space expansion. 1161 // scavenge since last new space expansion.
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
2209 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2217 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2210 2218
2211 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2219 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2212 }; 2220 };
2213 #endif // DEBUG || LIVE_OBJECT_LIST 2221 #endif // DEBUG || LIVE_OBJECT_LIST
2214 2222
2215 2223
2216 } } // namespace v8::internal 2224 } } // namespace v8::internal
2217 2225
2218 #endif // V8_HEAP_H_ 2226 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/global-handles.cc ('k') | src/heap-profiler.h » ('j') | src/heap-profiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698