| OLD | NEW | 
|    1 // Copyright 2012 the V8 project authors. All rights reserved. |    1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #include "src/v8.h" |    5 #include "src/v8.h" | 
|    6  |    6  | 
|    7 #include "src/assembler.h" |    7 #include "src/assembler.h" | 
|    8 #include "src/base/once.h" |    8 #include "src/base/once.h" | 
|    9 #include "src/base/platform/platform.h" |    9 #include "src/base/platform/platform.h" | 
|   10 #include "src/bootstrapper.h" |   10 #include "src/bootstrapper.h" | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   72     const char* filter_flag = "--turbo-filter=*"; |   72     const char* filter_flag = "--turbo-filter=*"; | 
|   73     FlagList::SetFlagsFromString(filter_flag, StrLength(filter_flag)); |   73     FlagList::SetFlagsFromString(filter_flag, StrLength(filter_flag)); | 
|   74   } |   74   } | 
|   75  |   75  | 
|   76   base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap); |   76   base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap); | 
|   77  |   77  | 
|   78   Isolate::InitializeOncePerProcess(); |   78   Isolate::InitializeOncePerProcess(); | 
|   79  |   79  | 
|   80   Sampler::SetUp(); |   80   Sampler::SetUp(); | 
|   81   CpuFeatures::Probe(false); |   81   CpuFeatures::Probe(false); | 
|   82   init_memcopy_functions(); |  | 
|   83   ElementsAccessor::InitializeOncePerProcess(); |   82   ElementsAccessor::InitializeOncePerProcess(); | 
|   84   LOperand::SetUpCaches(); |   83   LOperand::SetUpCaches(); | 
|   85   SetUpJSCallerSavedCodeData(); |   84   SetUpJSCallerSavedCodeData(); | 
|   86   ExternalReference::SetUp(); |   85   ExternalReference::SetUp(); | 
|   87   Bootstrapper::InitializeOncePerProcess(); |   86   Bootstrapper::InitializeOncePerProcess(); | 
|   88 } |   87 } | 
|   89  |   88  | 
|   90  |   89  | 
|   91 void V8::InitializeOncePerProcess() { |   90 void V8::InitializeOncePerProcess() { | 
|   92   base::CallOnce(&init_once, &InitializeOncePerProcessImpl); |   91   base::CallOnce(&init_once, &InitializeOncePerProcessImpl); | 
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  126  |  125  | 
|  127 void V8::SetSnapshotBlob(StartupData* snapshot_blob) { |  126 void V8::SetSnapshotBlob(StartupData* snapshot_blob) { | 
|  128 #ifdef V8_USE_EXTERNAL_STARTUP_DATA |  127 #ifdef V8_USE_EXTERNAL_STARTUP_DATA | 
|  129   base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob); |  128   base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob); | 
|  130 #else |  129 #else | 
|  131   CHECK(false); |  130   CHECK(false); | 
|  132 #endif |  131 #endif | 
|  133 } |  132 } | 
|  134 }  // namespace internal |  133 }  // namespace internal | 
|  135 }  // namespace v8 |  134 }  // namespace v8 | 
| OLD | NEW |