Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(647)

Side by Side Diff: src/v8.cc

Issue 1480883002: Initialize fast memmove methods in the Isolate's ctor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/utils.cc ('k') | src/x87/codegen-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/utils.cc ('k') | src/x87/codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698