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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 Logger::Setup(); | 62 Logger::Setup(); |
63 | 63 |
64 CpuProfiler::Setup(); | 64 CpuProfiler::Setup(); |
65 HeapProfiler::Setup(); | 65 HeapProfiler::Setup(); |
66 | 66 |
67 // Setup the platform OS support. | 67 // Setup the platform OS support. |
68 OS::Setup(); | 68 OS::Setup(); |
69 | 69 |
70 // Initialize other runtime facilities | 70 // Initialize other runtime facilities |
71 #if defined(USE_SIMULATOR) | 71 #if defined(USE_SIMULATOR) |
| 72 #if defined(V8_TARGET_ARCH_ARM) |
72 ::assembler::arm::Simulator::Initialize(); | 73 ::assembler::arm::Simulator::Initialize(); |
| 74 #elif defined(V8_TARGET_ARCH_MIPS) |
| 75 ::assembler::mips::Simulator::Initialize(); |
| 76 #endif |
73 #endif | 77 #endif |
74 | 78 |
75 { // NOLINT | 79 { // NOLINT |
76 // Ensure that the thread has a valid stack guard. The v8::Locker object | 80 // Ensure that the thread has a valid stack guard. The v8::Locker object |
77 // will ensure this too, but we don't have to use lockers if we are only | 81 // will ensure this too, but we don't have to use lockers if we are only |
78 // using one thread. | 82 // using one thread. |
79 ExecutionAccess lock; | 83 ExecutionAccess lock; |
80 StackGuard::InitThread(lock); | 84 StackGuard::InitThread(lock); |
81 } | 85 } |
82 | 86 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). | 223 // ( 1.(20 0s)(32 random bits) x 2^20 ) - (1.0 x 2^20)). |
220 const double binary_million = 1048576.0; | 224 const double binary_million = 1048576.0; |
221 r->double_value = binary_million; | 225 r->double_value = binary_million; |
222 r->uint64_t_value |= random_bits; | 226 r->uint64_t_value |= random_bits; |
223 r->double_value -= binary_million; | 227 r->double_value -= binary_million; |
224 | 228 |
225 return heap_number; | 229 return heap_number; |
226 } | 230 } |
227 | 231 |
228 } } // namespace v8::internal | 232 } } // namespace v8::internal |
OLD | NEW |