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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 /* The first 32 roots above this line should be boring from a GC point of */ \ | 89 /* The first 32 roots above this line should be boring from a GC point of */ \ |
90 /* view. This means they are never in new space and never on a page that */ \ | 90 /* view. This means they are never in new space and never on a page that */ \ |
91 /* is being compacted. */ \ | 91 /* is being compacted. */ \ |
92 V(FixedArray, number_string_cache, NumberStringCache) \ | 92 V(FixedArray, number_string_cache, NumberStringCache) \ |
93 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ | 93 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ |
94 V(Object, instanceof_cache_map, InstanceofCacheMap) \ | 94 V(Object, instanceof_cache_map, InstanceofCacheMap) \ |
95 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ | 95 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ |
96 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ | 96 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ |
97 V(FixedArray, string_split_cache, StringSplitCache) \ | 97 V(FixedArray, string_split_cache, StringSplitCache) \ |
98 V(Object, termination_exception, TerminationException) \ | 98 V(Object, termination_exception, TerminationException) \ |
99 V(Smi, string_hash_seed, StringHashSeed) \ | 99 V(Smi, hash_seed, HashSeed) \ |
100 V(Map, string_map, StringMap) \ | 100 V(Map, string_map, StringMap) \ |
101 V(Map, symbol_map, SymbolMap) \ | 101 V(Map, symbol_map, SymbolMap) \ |
102 V(Map, cons_string_map, ConsStringMap) \ | 102 V(Map, cons_string_map, ConsStringMap) \ |
103 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \ | 103 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \ |
104 V(Map, sliced_string_map, SlicedStringMap) \ | 104 V(Map, sliced_string_map, SlicedStringMap) \ |
105 V(Map, sliced_ascii_string_map, SlicedAsciiStringMap) \ | 105 V(Map, sliced_ascii_string_map, SlicedAsciiStringMap) \ |
106 V(Map, cons_symbol_map, ConsSymbolMap) \ | 106 V(Map, cons_symbol_map, ConsSymbolMap) \ |
107 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \ | 107 V(Map, cons_ascii_symbol_map, ConsAsciiSymbolMap) \ |
108 V(Map, external_symbol_map, ExternalSymbolMap) \ | 108 V(Map, external_symbol_map, ExternalSymbolMap) \ |
109 V(Map, external_symbol_with_ascii_data_map, ExternalSymbolWithAsciiDataMap) \ | 109 V(Map, external_symbol_with_ascii_data_map, ExternalSymbolWithAsciiDataMap) \ |
(...skipping 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 // around a GC). | 1499 // around a GC). |
1500 inline void CompletelyClearInstanceofCache(); | 1500 inline void CompletelyClearInstanceofCache(); |
1501 | 1501 |
1502 // The roots that have an index less than this are always in old space. | 1502 // The roots that have an index less than this are always in old space. |
1503 static const int kOldSpaceRoots = 0x20; | 1503 static const int kOldSpaceRoots = 0x20; |
1504 | 1504 |
1505 bool idle_notification_will_schedule_next_gc() { | 1505 bool idle_notification_will_schedule_next_gc() { |
1506 return idle_notification_will_schedule_next_gc_; | 1506 return idle_notification_will_schedule_next_gc_; |
1507 } | 1507 } |
1508 | 1508 |
1509 uint32_t StringHashSeed() { | 1509 uint32_t HashSeed() { |
1510 uint32_t seed = static_cast<uint32_t>(string_hash_seed()->value()); | 1510 uint32_t seed = static_cast<uint32_t>(hash_seed()->value()); |
1511 ASSERT(FLAG_randomize_string_hashes || seed == 0); | 1511 ASSERT(FLAG_randomize_hashes || seed == 0); |
1512 return seed; | 1512 return seed; |
1513 } | 1513 } |
1514 | 1514 |
1515 private: | 1515 private: |
1516 Heap(); | 1516 Heap(); |
1517 | 1517 |
1518 // This can be calculated directly from a pointer to the heap; however, it is | 1518 // This can be calculated directly from a pointer to the heap; however, it is |
1519 // more expedient to get at the isolate directly from within Heap methods. | 1519 // more expedient to get at the isolate directly from within Heap methods. |
1520 Isolate* isolate_; | 1520 Isolate* isolate_; |
1521 | 1521 |
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2610 | 2610 |
2611 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2611 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2612 }; | 2612 }; |
2613 #endif // DEBUG || LIVE_OBJECT_LIST | 2613 #endif // DEBUG || LIVE_OBJECT_LIST |
2614 | 2614 |
2615 } } // namespace v8::internal | 2615 } } // namespace v8::internal |
2616 | 2616 |
2617 #undef HEAP | 2617 #undef HEAP |
2618 | 2618 |
2619 #endif // V8_HEAP_H_ | 2619 #endif // V8_HEAP_H_ |
OLD | NEW |