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 353113003: Remove dependency from platform files on v8.h (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/platform-win32.cc ('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); 93 OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap);
94 94
95 #ifdef V8_USE_DEFAULT_PLATFORM 95 #ifdef V8_USE_DEFAULT_PLATFORM
96 platform_ = new DefaultPlatform; 96 platform_ = new DefaultPlatform;
97 #endif 97 #endif
98 Sampler::SetUp(); 98 Sampler::SetUp();
99 CpuFeatures::Probe(false); 99 CpuFeatures::Probe(false);
100 init_memcopy_functions(); 100 init_memcopy_functions();
101 // The custom exp implementation needs 16KB of lookup data; initialize it 101 // The custom exp implementation needs 16KB of lookup data; initialize it
102 // on demand. 102 // on demand.
103 init_fast_sqrt_function(); 103 init_fast_sqrt_function();
(...skipping 25 matching lines...) Expand all
129 platform_ = NULL; 129 platform_ = NULL;
130 } 130 }
131 131
132 132
133 v8::Platform* V8::GetCurrentPlatform() { 133 v8::Platform* V8::GetCurrentPlatform() {
134 ASSERT(platform_); 134 ASSERT(platform_);
135 return platform_; 135 return platform_;
136 } 136 }
137 137
138 } } // namespace v8::internal 138 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-win32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698