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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 // Setup the CPU support. Must be done after heap setup and after | 110 // Setup the CPU support. Must be done after heap setup and after |
111 // any deserialization because we have to have the initial heap | 111 // any deserialization because we have to have the initial heap |
112 // objects in place for creating the code object used for probing. | 112 // objects in place for creating the code object used for probing. |
113 CPU::Setup(); | 113 CPU::Setup(); |
114 | 114 |
115 OProfileAgent::Initialize(); | 115 OProfileAgent::Initialize(); |
116 | 116 |
117 if (FLAG_log_code) { | 117 if (FLAG_log_code) { |
118 HandleScope scope; | 118 HandleScope scope; |
119 Logger::LogCompiledFunctions(); | 119 LOG(LogCompiledFunctions()); |
120 } | 120 } |
121 | 121 |
122 return true; | 122 return true; |
123 } | 123 } |
124 | 124 |
125 | 125 |
126 void V8::SetFatalError() { | 126 void V8::SetFatalError() { |
127 is_running_ = false; | 127 is_running_ = false; |
128 has_fatal_error_ = true; | 128 has_fatal_error_ = true; |
129 } | 129 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 | 184 |
185 Smi* V8::RandomPositiveSmi() { | 185 Smi* V8::RandomPositiveSmi() { |
186 uint32_t random = Random(); | 186 uint32_t random = Random(); |
187 ASSERT(static_cast<uint32_t>(Smi::kMaxValue) >= kRandomPositiveSmiMax); | 187 ASSERT(static_cast<uint32_t>(Smi::kMaxValue) >= kRandomPositiveSmiMax); |
188 // kRandomPositiveSmiMax must match the value being divided | 188 // kRandomPositiveSmiMax must match the value being divided |
189 // by in math.js. | 189 // by in math.js. |
190 return Smi::FromInt(random & kRandomPositiveSmiMax); | 190 return Smi::FromInt(random & kRandomPositiveSmiMax); |
191 } | 191 } |
192 | 192 |
193 } } // namespace v8::internal | 193 } } // namespace v8::internal |
OLD | NEW |