| OLD | NEW |
| 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 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1217 return &mark_compact_collector_; | 1217 return &mark_compact_collector_; |
| 1218 } | 1218 } |
| 1219 | 1219 |
| 1220 ExternalStringTable* external_string_table() { | 1220 ExternalStringTable* external_string_table() { |
| 1221 return &external_string_table_; | 1221 return &external_string_table_; |
| 1222 } | 1222 } |
| 1223 | 1223 |
| 1224 inline Isolate* isolate(); | 1224 inline Isolate* isolate(); |
| 1225 bool is_safe_to_read_maps() { return is_safe_to_read_maps_; } | 1225 bool is_safe_to_read_maps() { return is_safe_to_read_maps_; } |
| 1226 | 1226 |
| 1227 void CallGlobalGCPrologueCallback() { |
| 1228 if (global_gc_prologue_callback_ != NULL) global_gc_prologue_callback_(); |
| 1229 } |
| 1230 |
| 1231 void CallGlobalGCEpilogueCallback() { |
| 1232 if (global_gc_epilogue_callback_ != NULL) global_gc_epilogue_callback_(); |
| 1233 } |
| 1234 |
| 1227 private: | 1235 private: |
| 1228 Heap(); | 1236 Heap(); |
| 1229 | 1237 |
| 1230 // This can be calculated directly from a pointer to the heap; however, it is | 1238 // This can be calculated directly from a pointer to the heap; however, it is |
| 1231 // more expedient to get at the isolate directly from within Heap methods. | 1239 // more expedient to get at the isolate directly from within Heap methods. |
| 1232 Isolate* isolate_; | 1240 Isolate* isolate_; |
| 1233 | 1241 |
| 1234 int reserved_semispace_size_; | 1242 int reserved_semispace_size_; |
| 1235 int max_semispace_size_; | 1243 int max_semispace_size_; |
| 1236 int initial_semispace_size_; | 1244 int initial_semispace_size_; |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2239 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2247 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2240 }; | 2248 }; |
| 2241 #endif // DEBUG || LIVE_OBJECT_LIST | 2249 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2242 | 2250 |
| 2243 | 2251 |
| 2244 } } // namespace v8::internal | 2252 } } // namespace v8::internal |
| 2245 | 2253 |
| 2246 #undef HEAP | 2254 #undef HEAP |
| 2247 | 2255 |
| 2248 #endif // V8_HEAP_H_ | 2256 #endif // V8_HEAP_H_ |
| OLD | NEW |