OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 if (FLAG_preemption) { | 142 if (FLAG_preemption) { |
143 v8::Locker locker; | 143 v8::Locker locker; |
144 v8::Locker::StopPreemption(); | 144 v8::Locker::StopPreemption(); |
145 } | 145 } |
146 | 146 |
147 Builtins::TearDown(); | 147 Builtins::TearDown(); |
148 Bootstrapper::TearDown(); | 148 Bootstrapper::TearDown(); |
149 | 149 |
150 Top::TearDown(); | 150 Top::TearDown(); |
151 | 151 |
| 152 CpuProfiler::TearDown(); |
| 153 |
152 Heap::TearDown(); | 154 Heap::TearDown(); |
153 | 155 |
154 CpuProfiler::TearDown(); | |
155 | |
156 Logger::TearDown(); | 156 Logger::TearDown(); |
157 | 157 |
158 is_running_ = false; | 158 is_running_ = false; |
159 has_been_disposed_ = true; | 159 has_been_disposed_ = true; |
160 } | 160 } |
161 | 161 |
162 | 162 |
163 static uint32_t random_seed() { | 163 static uint32_t random_seed() { |
164 if (FLAG_random_seed == 0) { | 164 if (FLAG_random_seed == 0) { |
165 return random(); | 165 return random(); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). | 215 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). |
216 const double binary_million = 1048576.0; | 216 const double binary_million = 1048576.0; |
217 r->double_value = binary_million; | 217 r->double_value = binary_million; |
218 r->uint64_t_value |= random_bits; | 218 r->uint64_t_value |= random_bits; |
219 r->double_value -= binary_million; | 219 r->double_value -= binary_million; |
220 | 220 |
221 return heap_number; | 221 return heap_number; |
222 } | 222 } |
223 | 223 |
224 } } // namespace v8::internal | 224 } } // namespace v8::internal |
OLD | NEW |