| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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); |
| 134 #endif | 134 #endif |
| 135 stub_cache_->Initialize(create_heap_objects); | 135 stub_cache_->Initialize(create_heap_objects); |
| 136 | 136 |
| 137 // If we are deserializing, read the state into the now-empty heap. | 137 // If we are deserializing, read the state into the now-empty heap. |
| 138 if (des != NULL) { | 138 if (des != NULL) { |
| 139 des->Deserialize(); | 139 des->Deserialize(); |
| 140 StubCache::Clear(); | 140 stub_cache_->Clear(); |
| 141 } | 141 } |
| 142 | 142 |
| 143 // Deserializing may put strange things in the root array's copy of the | 143 // Deserializing may put strange things in the root array's copy of the |
| 144 // stack guard. | 144 // stack guard. |
| 145 Heap::SetStackLimits(); | 145 Heap::SetStackLimits(); |
| 146 | 146 |
| 147 // Setup the CPU support. Must be done after heap setup and after | 147 // Setup the CPU support. Must be done after heap setup and after |
| 148 // any deserialization because we have to have the initial heap | 148 // any deserialization because we have to have the initial heap |
| 149 // objects in place for creating the code object used for probing. | 149 // objects in place for creating the code object used for probing. |
| 150 CPU::Setup(); | 150 CPU::Setup(); |
| 151 | 151 |
| 152 OProfileAgent::Initialize(); | 152 OProfileAgent::Initialize(); |
| 153 | 153 |
| 154 // If we are deserializing, log non-function code objects and compiled | 154 // If we are deserializing, log non-function code objects and compiled |
| 155 // functions found in the snapshot. | 155 // functions found in the snapshot. |
| 156 if (des != NULL && FLAG_log_code) { | 156 if (des != NULL && FLAG_log_code) { |
| 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 |