| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 ExternalReference::TearDownMathExpData(); | 105 ExternalReference::TearDownMathExpData(); |
| 106 RegisteredExtension::UnregisterAll(); | 106 RegisteredExtension::UnregisterAll(); |
| 107 Isolate::GlobalTearDown(); | 107 Isolate::GlobalTearDown(); |
| 108 | 108 |
| 109 has_been_disposed_ = true; | 109 has_been_disposed_ = true; |
| 110 | 110 |
| 111 delete call_completed_callbacks_; | 111 delete call_completed_callbacks_; |
| 112 call_completed_callbacks_ = NULL; | 112 call_completed_callbacks_ = NULL; |
| 113 | 113 |
| 114 Sampler::TearDown(); | 114 Sampler::TearDown(); |
| 115 OS::TearDown(); | |
| 116 } | 115 } |
| 117 | 116 |
| 118 | 117 |
| 119 static void seed_random(uint32_t* state) { | 118 static void seed_random(uint32_t* state) { |
| 120 for (int i = 0; i < 2; ++i) { | 119 for (int i = 0; i < 2; ++i) { |
| 121 if (FLAG_random_seed != 0) { | 120 if (FLAG_random_seed != 0) { |
| 122 state[i] = FLAG_random_seed; | 121 state[i] = FLAG_random_seed; |
| 123 } else if (entropy_source != NULL) { | 122 } else if (entropy_source != NULL) { |
| 124 uint32_t val; | 123 uint32_t val; |
| 125 LockGuard<Mutex> lock_guard(entropy_mutex.Pointer()); | 124 LockGuard<Mutex> lock_guard(entropy_mutex.Pointer()); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 ExternalReference::SetUp(); | 301 ExternalReference::SetUp(); |
| 303 Bootstrapper::InitializeOncePerProcess(); | 302 Bootstrapper::InitializeOncePerProcess(); |
| 304 } | 303 } |
| 305 | 304 |
| 306 | 305 |
| 307 void V8::InitializeOncePerProcess() { | 306 void V8::InitializeOncePerProcess() { |
| 308 CallOnce(&init_once, &InitializeOncePerProcessImpl); | 307 CallOnce(&init_once, &InitializeOncePerProcessImpl); |
| 309 } | 308 } |
| 310 | 309 |
| 311 } } // namespace v8::internal | 310 } } // namespace v8::internal |
| OLD | NEW |