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

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: 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 if (FLAG_stress_compaction) { 137 if (FLAG_stress_compaction) {
138 FLAG_force_marking_deque_overflows = true; 138 FLAG_force_marking_deque_overflows = true;
139 FLAG_gc_global = true; 139 FLAG_gc_global = true;
140 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; 140 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2;
141 } 141 }
142 142
143 #ifdef V8_USE_DEFAULT_PLATFORM 143 #ifdef V8_USE_DEFAULT_PLATFORM
144 platform_ = new DefaultPlatform; 144 platform_ = new DefaultPlatform;
145 #endif 145 #endif
146 Sampler::SetUp(); 146 Sampler::SetUp();
147 CpuFeatures::Probe(Serializer::enabled()); 147 // TODO(svenpanne) Clean this up when Serializer is a real object.
148 OS::PostSetUp(); 148 bool serializer_enabled = Serializer::enabled(NULL);
149 CpuFeatures::Probe(serializer_enabled);
150 OS::PostSetUp(serializer_enabled);
149 ElementsAccessor::InitializeOncePerProcess(); 151 ElementsAccessor::InitializeOncePerProcess();
150 LOperand::SetUpCaches(); 152 LOperand::SetUpCaches();
151 SetUpJSCallerSavedCodeData(); 153 SetUpJSCallerSavedCodeData();
152 ExternalReference::SetUp(); 154 ExternalReference::SetUp();
153 Bootstrapper::InitializeOncePerProcess(); 155 Bootstrapper::InitializeOncePerProcess();
154 } 156 }
155 157
156 158
157 void V8::InitializeOncePerProcess() { 159 void V8::InitializeOncePerProcess() {
158 CallOnce(&init_once, &InitializeOncePerProcessImpl); 160 CallOnce(&init_once, &InitializeOncePerProcessImpl);
(...skipping 12 matching lines...) Expand all
171 platform_ = NULL; 173 platform_ = NULL;
172 } 174 }
173 175
174 176
175 v8::Platform* V8::GetCurrentPlatform() { 177 v8::Platform* V8::GetCurrentPlatform() {
176 ASSERT(platform_); 178 ASSERT(platform_);
177 return platform_; 179 return platform_;
178 } 180 }
179 181
180 } } // namespace v8::internal 182 } } // namespace v8::internal
OLDNEW
« src/objects-visiting-inl.h ('K') | « src/serialize.cc ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698