Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 V(NumberDictionary, code_stubs, CodeStubs) \ | 125 V(NumberDictionary, code_stubs, CodeStubs) \ |
| 126 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ | 126 V(NumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
| 127 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ | 127 V(PolymorphicCodeCache, polymorphic_code_cache, PolymorphicCodeCache) \ |
| 128 V(Code, js_entry_code, JsEntryCode) \ | 128 V(Code, js_entry_code, JsEntryCode) \ |
| 129 V(Code, js_construct_entry_code, JsConstructEntryCode) \ | 129 V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
| 130 V(FixedArray, natives_source_cache, NativesSourceCache) \ | 130 V(FixedArray, natives_source_cache, NativesSourceCache) \ |
| 131 V(Object, last_script_id, LastScriptId) \ | 131 V(Object, last_script_id, LastScriptId) \ |
| 132 V(Script, empty_script, EmptyScript) \ | 132 V(Script, empty_script, EmptyScript) \ |
| 133 V(Smi, real_stack_limit, RealStackLimit) \ | 133 V(Smi, real_stack_limit, RealStackLimit) \ |
| 134 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ | 134 V(StringDictionary, intrinsic_function_names, IntrinsicFunctionNames) \ |
| 135 V(Object, encountered_weak_maps, EncounteredWeakMaps) \ | |
|
Vyacheslav Egorov (Chromium)
2011/08/02 16:32:00
Do we really need a separate root for this list?
Michael Starzinger
2011/08/03 08:47:05
Done. I made it into a root to have the list avail
| |
| 135 | 136 |
| 136 #define ROOT_LIST(V) \ | 137 #define ROOT_LIST(V) \ |
| 137 STRONG_ROOT_LIST(V) \ | 138 STRONG_ROOT_LIST(V) \ |
| 138 V(SymbolTable, symbol_table, SymbolTable) | 139 V(SymbolTable, symbol_table, SymbolTable) |
| 139 | 140 |
| 140 #define SYMBOL_LIST(V) \ | 141 #define SYMBOL_LIST(V) \ |
| 141 V(Array_symbol, "Array") \ | 142 V(Array_symbol, "Array") \ |
| 142 V(Object_symbol, "Object") \ | 143 V(Object_symbol, "Object") \ |
| 143 V(Proto_symbol, "__proto__") \ | 144 V(Proto_symbol, "__proto__") \ |
| 144 V(StringImpl_symbol, "StringImpl") \ | 145 V(StringImpl_symbol, "StringImpl") \ |
| (...skipping 1494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1639 bool is_safe_to_read_maps_; | 1640 bool is_safe_to_read_maps_; |
| 1640 | 1641 |
| 1641 friend class Factory; | 1642 friend class Factory; |
| 1642 friend class GCTracer; | 1643 friend class GCTracer; |
| 1643 friend class DisallowAllocationFailure; | 1644 friend class DisallowAllocationFailure; |
| 1644 friend class AlwaysAllocateScope; | 1645 friend class AlwaysAllocateScope; |
| 1645 friend class LinearAllocationScope; | 1646 friend class LinearAllocationScope; |
| 1646 friend class Page; | 1647 friend class Page; |
| 1647 friend class Isolate; | 1648 friend class Isolate; |
| 1648 friend class MarkCompactCollector; | 1649 friend class MarkCompactCollector; |
| 1650 friend class StaticMarkingVisitor; | |
| 1649 friend class MapCompact; | 1651 friend class MapCompact; |
| 1650 | 1652 |
| 1651 DISALLOW_COPY_AND_ASSIGN(Heap); | 1653 DISALLOW_COPY_AND_ASSIGN(Heap); |
| 1652 }; | 1654 }; |
| 1653 | 1655 |
| 1654 | 1656 |
| 1655 class HeapStats { | 1657 class HeapStats { |
| 1656 public: | 1658 public: |
| 1657 static const int kStartMarker = 0xDECADE00; | 1659 static const int kStartMarker = 0xDECADE00; |
| 1658 static const int kEndMarker = 0xDECADE01; | 1660 static const int kEndMarker = 0xDECADE01; |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2305 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2307 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2306 }; | 2308 }; |
| 2307 #endif // DEBUG || LIVE_OBJECT_LIST | 2309 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2308 | 2310 |
| 2309 | 2311 |
| 2310 } } // namespace v8::internal | 2312 } } // namespace v8::internal |
| 2311 | 2313 |
| 2312 #undef HEAP | 2314 #undef HEAP |
| 2313 | 2315 |
| 2314 #endif // V8_HEAP_H_ | 2316 #endif // V8_HEAP_H_ |
| OLD | NEW |