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

Side by Side Diff: src/v8.cc

Issue 1094573002: [turbofan] Add single --turbo flag. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix size_t awesomeness! Created 5 years, 8 months 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/flag-definitions.h ('k') | test/benchmarks/testcfg.py » ('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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // Avoid random seeds in predictable mode. 70 // Avoid random seeds in predictable mode.
71 FLAG_random_seed = 12347; 71 FLAG_random_seed = 12347;
72 } 72 }
73 73
74 if (FLAG_stress_compaction) { 74 if (FLAG_stress_compaction) {
75 FLAG_force_marking_deque_overflows = true; 75 FLAG_force_marking_deque_overflows = true;
76 FLAG_gc_global = true; 76 FLAG_gc_global = true;
77 FLAG_max_semi_space_size = 1; 77 FLAG_max_semi_space_size = 1;
78 } 78 }
79 79
80 if (FLAG_turbo && strcmp(FLAG_turbo_filter, "~~") == 0) {
81 const char* filter_flag = "--turbo-filter=*";
82 FlagList::SetFlagsFromString(filter_flag, StrLength(filter_flag));
83 }
84
80 base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap); 85 base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap);
81 86
82 Isolate::InitializeOncePerProcess(); 87 Isolate::InitializeOncePerProcess();
83 88
84 Sampler::SetUp(); 89 Sampler::SetUp();
85 CpuFeatures::Probe(false); 90 CpuFeatures::Probe(false);
86 init_memcopy_functions(); 91 init_memcopy_functions();
87 // The custom exp implementation needs 16KB of lookup data; initialize it 92 // The custom exp implementation needs 16KB of lookup data; initialize it
88 // on demand. 93 // on demand.
89 init_fast_sqrt_function(); 94 init_fast_sqrt_function();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 137
133 138
134 void V8::SetSnapshotBlob(StartupData* snapshot_blob) { 139 void V8::SetSnapshotBlob(StartupData* snapshot_blob) {
135 #ifdef V8_USE_EXTERNAL_STARTUP_DATA 140 #ifdef V8_USE_EXTERNAL_STARTUP_DATA
136 base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob); 141 base::CallOnce(&init_snapshot_once, &SetSnapshotFromFile, snapshot_blob);
137 #else 142 #else
138 CHECK(false); 143 CHECK(false);
139 #endif 144 #endif
140 } 145 }
141 } } // namespace v8::internal 146 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | test/benchmarks/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698