| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 if (!has_been_setup_ || has_been_disposed_) return; | 68 if (!has_been_setup_ || has_been_disposed_) return; |
| 69 | 69 |
| 70 OProfileAgent::TearDown(); | 70 OProfileAgent::TearDown(); |
| 71 | 71 |
| 72 if (FLAG_preemption) { | 72 if (FLAG_preemption) { |
| 73 v8::Locker locker; | 73 v8::Locker locker; |
| 74 v8::Locker::StopPreemption(); | 74 v8::Locker::StopPreemption(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 Builtins::TearDown(); | 77 Builtins::TearDown(); |
| 78 Bootstrapper::TearDown(); | 78 Isolate::Current()->bootstrapper()->TearDown(); |
| 79 | 79 |
| 80 Top::TearDown(); | 80 Top::TearDown(); |
| 81 | 81 |
| 82 CpuProfiler::TearDown(); | 82 CpuProfiler::TearDown(); |
| 83 | 83 |
| 84 Heap::TearDown(); | 84 Heap::TearDown(); |
| 85 | 85 |
| 86 Logger::TearDown(); | 86 Logger::TearDown(); |
| 87 | 87 |
| 88 is_running_ = false; | 88 is_running_ = false; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). | 145 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). |
| 146 const double binary_million = 1048576.0; | 146 const double binary_million = 1048576.0; |
| 147 r->double_value = binary_million; | 147 r->double_value = binary_million; |
| 148 r->uint64_t_value |= random_bits; | 148 r->uint64_t_value |= random_bits; |
| 149 r->double_value -= binary_million; | 149 r->double_value -= binary_million; |
| 150 | 150 |
| 151 return heap_number; | 151 return heap_number; |
| 152 } | 152 } |
| 153 | 153 |
| 154 } } // namespace v8::internal | 154 } } // namespace v8::internal |
| OLD | NEW |