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

Side by Side Diff: src/v8.cc

Issue 347223004: Remove dependency from platform.h implementations on isolate (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « src/utils/random-number-generator.h ('k') | no next file » | 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/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/debug.h" 10 #include "src/debug.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 // Avoid random seeds in predictable mode. 83 // Avoid random seeds in predictable mode.
84 FLAG_random_seed = 12347; 84 FLAG_random_seed = 12347;
85 } 85 }
86 86
87 if (FLAG_stress_compaction) { 87 if (FLAG_stress_compaction) {
88 FLAG_force_marking_deque_overflows = true; 88 FLAG_force_marking_deque_overflows = true;
89 FLAG_gc_global = true; 89 FLAG_gc_global = true;
90 FLAG_max_semi_space_size = 1; 90 FLAG_max_semi_space_size = 1;
91 } 91 }
92 92
93 if (FLAG_random_seed != 0) OS::SetRandomSeed(FLAG_random_seed);
94
93 #ifdef V8_USE_DEFAULT_PLATFORM 95 #ifdef V8_USE_DEFAULT_PLATFORM
94 platform_ = new DefaultPlatform; 96 platform_ = new DefaultPlatform;
95 #endif 97 #endif
96 Sampler::SetUp(); 98 Sampler::SetUp();
97 CpuFeatures::Probe(false); 99 CpuFeatures::Probe(false);
98 init_memcopy_functions(); 100 init_memcopy_functions();
99 // The custom exp implementation needs 16KB of lookup data; initialize it 101 // The custom exp implementation needs 16KB of lookup data; initialize it
100 // on demand. 102 // on demand.
101 init_fast_sqrt_function(); 103 init_fast_sqrt_function();
102 #ifdef _WIN64 104 #ifdef _WIN64
(...skipping 24 matching lines...) Expand all
127 platform_ = NULL; 129 platform_ = NULL;
128 } 130 }
129 131
130 132
131 v8::Platform* V8::GetCurrentPlatform() { 133 v8::Platform* V8::GetCurrentPlatform() {
132 ASSERT(platform_); 134 ASSERT(platform_);
133 return platform_; 135 return platform_;
134 } 136 }
135 137
136 } } // namespace v8::internal 138 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/utils/random-number-generator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698