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

Side by Side Diff: src/v8.cc

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. Created 6 years, 7 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/serialize.cc ('k') | src/x64/assembler-x64.h » ('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 "v8.h" 5 #include "v8.h"
6 6
7 #include "assembler.h" 7 #include "assembler.h"
8 #include "isolate.h" 8 #include "isolate.h"
9 #include "elements.h" 9 #include "elements.h"
10 #include "bootstrapper.h" 10 #include "bootstrapper.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 if (FLAG_stress_compaction) { 114 if (FLAG_stress_compaction) {
115 FLAG_force_marking_deque_overflows = true; 115 FLAG_force_marking_deque_overflows = true;
116 FLAG_gc_global = true; 116 FLAG_gc_global = true;
117 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; 117 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2;
118 } 118 }
119 119
120 #ifdef V8_USE_DEFAULT_PLATFORM 120 #ifdef V8_USE_DEFAULT_PLATFORM
121 platform_ = new DefaultPlatform; 121 platform_ = new DefaultPlatform;
122 #endif 122 #endif
123 Sampler::SetUp(); 123 Sampler::SetUp();
124 CpuFeatures::Probe(Serializer::enabled()); 124 // TODO(svenpanne) Clean this up when Serializer is a real object.
125 OS::PostSetUp(); 125 bool serializer_enabled = Serializer::enabled(NULL);
126 CpuFeatures::Probe(serializer_enabled);
127 OS::PostSetUp(serializer_enabled);
126 ElementsAccessor::InitializeOncePerProcess(); 128 ElementsAccessor::InitializeOncePerProcess();
127 LOperand::SetUpCaches(); 129 LOperand::SetUpCaches();
128 SetUpJSCallerSavedCodeData(); 130 SetUpJSCallerSavedCodeData();
129 ExternalReference::SetUp(); 131 ExternalReference::SetUp();
130 Bootstrapper::InitializeOncePerProcess(); 132 Bootstrapper::InitializeOncePerProcess();
131 } 133 }
132 134
133 135
134 void V8::InitializeOncePerProcess() { 136 void V8::InitializeOncePerProcess() {
135 CallOnce(&init_once, &InitializeOncePerProcessImpl); 137 CallOnce(&init_once, &InitializeOncePerProcessImpl);
(...skipping 12 matching lines...) Expand all
148 platform_ = NULL; 150 platform_ = NULL;
149 } 151 }
150 152
151 153
152 v8::Platform* V8::GetCurrentPlatform() { 154 v8::Platform* V8::GetCurrentPlatform() {
153 ASSERT(platform_); 155 ASSERT(platform_);
154 return platform_; 156 return platform_;
155 } 157 }
156 158
157 } } // namespace v8::internal 159 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698