| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 V(Map, meta_map, MetaMap) \ | 72 V(Map, meta_map, MetaMap) \ |
| 73 V(Map, hash_table_map, HashTableMap) \ | 73 V(Map, hash_table_map, HashTableMap) \ |
| 74 V(Smi, stack_limit, StackLimit) \ | 74 V(Smi, stack_limit, StackLimit) \ |
| 75 V(FixedArray, number_string_cache, NumberStringCache) \ | 75 V(FixedArray, number_string_cache, NumberStringCache) \ |
| 76 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ | 76 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ |
| 77 V(Object, instanceof_cache_map, InstanceofCacheMap) \ | 77 V(Object, instanceof_cache_map, InstanceofCacheMap) \ |
| 78 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ | 78 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ |
| 79 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ | 79 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ |
| 80 V(FixedArray, string_split_cache, StringSplitCache) \ | 80 V(FixedArray, string_split_cache, StringSplitCache) \ |
| 81 V(Object, termination_exception, TerminationException) \ | 81 V(Object, termination_exception, TerminationException) \ |
| 82 V(Smi, string_hash_seed, StringHashSeed) \ | 82 V(Smi, hash_seed, HashSeed) \ |
| 83 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ | 83 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ |
| 84 V(ByteArray, empty_byte_array, EmptyByteArray) \ | 84 V(ByteArray, empty_byte_array, EmptyByteArray) \ |
| 85 V(FixedDoubleArray, empty_fixed_double_array, EmptyFixedDoubleArray) \ | 85 V(FixedDoubleArray, empty_fixed_double_array, EmptyFixedDoubleArray) \ |
| 86 V(String, empty_string, EmptyString) \ | 86 V(String, empty_string, EmptyString) \ |
| 87 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ | 87 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ |
| 88 V(Map, string_map, StringMap) \ | 88 V(Map, string_map, StringMap) \ |
| 89 V(Map, ascii_string_map, AsciiStringMap) \ | 89 V(Map, ascii_string_map, AsciiStringMap) \ |
| 90 V(Map, symbol_map, SymbolMap) \ | 90 V(Map, symbol_map, SymbolMap) \ |
| 91 V(Map, cons_string_map, ConsStringMap) \ | 91 V(Map, cons_string_map, ConsStringMap) \ |
| 92 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \ | 92 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \ |
| (...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1294 bool is_safe_to_read_maps() { return is_safe_to_read_maps_; } | 1294 bool is_safe_to_read_maps() { return is_safe_to_read_maps_; } |
| 1295 | 1295 |
| 1296 void CallGlobalGCPrologueCallback() { | 1296 void CallGlobalGCPrologueCallback() { |
| 1297 if (global_gc_prologue_callback_ != NULL) global_gc_prologue_callback_(); | 1297 if (global_gc_prologue_callback_ != NULL) global_gc_prologue_callback_(); |
| 1298 } | 1298 } |
| 1299 | 1299 |
| 1300 void CallGlobalGCEpilogueCallback() { | 1300 void CallGlobalGCEpilogueCallback() { |
| 1301 if (global_gc_epilogue_callback_ != NULL) global_gc_epilogue_callback_(); | 1301 if (global_gc_epilogue_callback_ != NULL) global_gc_epilogue_callback_(); |
| 1302 } | 1302 } |
| 1303 | 1303 |
| 1304 uint32_t StringHashSeed() { | 1304 uint32_t HashSeed() { |
| 1305 uint32_t seed = static_cast<uint32_t>(string_hash_seed()->value()); | 1305 uint32_t seed = static_cast<uint32_t>(hash_seed()->value()); |
| 1306 ASSERT(FLAG_randomize_string_hashes || seed == 0); | 1306 ASSERT(FLAG_randomize_hashes || seed == 0); |
| 1307 return seed; | 1307 return seed; |
| 1308 } | 1308 } |
| 1309 | 1309 |
| 1310 private: | 1310 private: |
| 1311 Heap(); | 1311 Heap(); |
| 1312 | 1312 |
| 1313 // This can be calculated directly from a pointer to the heap; however, it is | 1313 // This can be calculated directly from a pointer to the heap; however, it is |
| 1314 // more expedient to get at the isolate directly from within Heap methods. | 1314 // more expedient to get at the isolate directly from within Heap methods. |
| 1315 Isolate* isolate_; | 1315 Isolate* isolate_; |
| 1316 | 1316 |
| (...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2355 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2355 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2356 }; | 2356 }; |
| 2357 #endif // DEBUG || LIVE_OBJECT_LIST | 2357 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2358 | 2358 |
| 2359 | 2359 |
| 2360 } } // namespace v8::internal | 2360 } } // namespace v8::internal |
| 2361 | 2361 |
| 2362 #undef HEAP | 2362 #undef HEAP |
| 2363 | 2363 |
| 2364 #endif // V8_HEAP_H_ | 2364 #endif // V8_HEAP_H_ |
| OLD | NEW |