| OLD | NEW |
| 1 // Copyright 2006-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2010 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 StackGuard::InitThread(lock); | 113 StackGuard::InitThread(lock); |
| 114 } | 114 } |
| 115 | 115 |
| 116 // Setup the object heap | 116 // Setup the object heap |
| 117 ASSERT(!Heap::HasBeenSetup()); | 117 ASSERT(!Heap::HasBeenSetup()); |
| 118 if (!Heap::Setup(create_heap_objects)) { | 118 if (!Heap::Setup(create_heap_objects)) { |
| 119 V8::SetFatalError(); | 119 V8::SetFatalError(); |
| 120 return false; | 120 return false; |
| 121 } | 121 } |
| 122 | 122 |
| 123 Bootstrapper::Initialize(create_heap_objects); | 123 bootstrapper_->Initialize(create_heap_objects); |
| 124 Builtins::Setup(create_heap_objects); | 124 Builtins::Setup(create_heap_objects); |
| 125 Top::Initialize(); | 125 Top::Initialize(); |
| 126 | 126 |
| 127 if (FLAG_preemption) { | 127 if (FLAG_preemption) { |
| 128 v8::Locker locker; | 128 v8::Locker locker; |
| 129 v8::Locker::StartPreemption(100); | 129 v8::Locker::StartPreemption(100); |
| 130 } | 130 } |
| 131 | 131 |
| 132 #ifdef ENABLE_DEBUGGER_SUPPORT | 132 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 133 Debug::Setup(create_heap_objects); | 133 Debug::Setup(create_heap_objects); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 157 HandleScope scope; | 157 HandleScope scope; |
| 158 LOG(LogCodeObjects()); | 158 LOG(LogCodeObjects()); |
| 159 LOG(LogCompiledFunctions()); | 159 LOG(LogCompiledFunctions()); |
| 160 } | 160 } |
| 161 | 161 |
| 162 return true; | 162 return true; |
| 163 } | 163 } |
| 164 | 164 |
| 165 | 165 |
| 166 } } // namespace v8::internal | 166 } } // namespace v8::internal |
| OLD | NEW |