OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 6859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6870 } else { | 6870 } else { |
6871 set_hash_seed(Smi::FromInt(FLAG_hash_seed)); | 6871 set_hash_seed(Smi::FromInt(FLAG_hash_seed)); |
6872 } | 6872 } |
6873 } | 6873 } |
6874 | 6874 |
6875 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); | 6875 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); |
6876 LOG(isolate_, IntPtrTEvent("heap-available", Available())); | 6876 LOG(isolate_, IntPtrTEvent("heap-available", Available())); |
6877 | 6877 |
6878 store_buffer()->SetUp(); | 6878 store_buffer()->SetUp(); |
6879 | 6879 |
6880 if (FLAG_parallel_recompilation) relocation_mutex_ = new Mutex; | 6880 if (FLAG_parallel_recompilation) relocation_mutex_ = OS::CreateMutex(); |
6881 #ifdef DEBUG | 6881 #ifdef DEBUG |
6882 relocation_mutex_locked_by_optimizer_thread_ = false; | 6882 relocation_mutex_locked_by_optimizer_thread_ = false; |
6883 #endif // DEBUG | 6883 #endif // DEBUG |
6884 | 6884 |
6885 return true; | 6885 return true; |
6886 } | 6886 } |
6887 | 6887 |
6888 | 6888 |
6889 bool Heap::CreateHeapObjects() { | 6889 bool Heap::CreateHeapObjects() { |
6890 // Create initial maps. | 6890 // Create initial maps. |
(...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8031 if (FLAG_parallel_recompilation) { | 8031 if (FLAG_parallel_recompilation) { |
8032 heap_->relocation_mutex_->Lock(); | 8032 heap_->relocation_mutex_->Lock(); |
8033 #ifdef DEBUG | 8033 #ifdef DEBUG |
8034 heap_->relocation_mutex_locked_by_optimizer_thread_ = | 8034 heap_->relocation_mutex_locked_by_optimizer_thread_ = |
8035 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); | 8035 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); |
8036 #endif // DEBUG | 8036 #endif // DEBUG |
8037 } | 8037 } |
8038 } | 8038 } |
8039 | 8039 |
8040 } } // namespace v8::internal | 8040 } } // namespace v8::internal |
OLD | NEW |