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

Side by Side Diff: src/mksnapshot.cc

Issue 367293002: Buildfix for windows after r22180 (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/d8.cc ('k') | test/cctest/cctest.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 <errno.h> 5 #include <errno.h>
6 #include <stdio.h> 6 #include <stdio.h>
7 #ifdef COMPRESS_STARTUP_DATA_BZ2 7 #ifdef COMPRESS_STARTUP_DATA_BZ2
8 #include <bzlib.h> 8 #include <bzlib.h>
9 #endif 9 #endif
10 #include <signal.h> 10 #include <signal.h>
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 fprintf(stderr, "%s\n", *message_line); 311 fprintf(stderr, "%s\n", *message_line);
312 for (int i = 0; i <= message->GetEndColumn(); ++i) { 312 for (int i = 0; i <= message->GetEndColumn(); ++i) {
313 fprintf(stderr, "%c", i < message->GetStartColumn() ? ' ' : '^'); 313 fprintf(stderr, "%c", i < message->GetStartColumn() ? ' ' : '^');
314 } 314 }
315 fprintf(stderr, "\n"); 315 fprintf(stderr, "\n");
316 } 316 }
317 317
318 318
319 int main(int argc, char** argv) { 319 int main(int argc, char** argv) {
320 V8::InitializeICU(); 320 V8::InitializeICU();
321 v8::Platform* platform = 321 v8::Platform* platform = v8::platform::CreateDefaultPlatform();
322 v8::platform::CreateDefaultPlatform(base::OS::NumberOfProcessorsOnline());
323 v8::V8::InitializePlatform(platform); 322 v8::V8::InitializePlatform(platform);
324 i::CpuFeatures::Probe(true); 323 i::CpuFeatures::Probe(true);
325 324
326 // By default, log code create information in the snapshot. 325 // By default, log code create information in the snapshot.
327 i::FLAG_log_code = true; 326 i::FLAG_log_code = true;
328 327
329 // Print the usage if an error occurs when parsing the command line 328 // Print the usage if an error occurs when parsing the command line
330 // flags or if the help flag is set. 329 // flags or if the help flag is set.
331 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); 330 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true);
332 if (result > 0 || argc != 2 || i::FLAG_help) { 331 if (result > 0 || argc != 2 || i::FLAG_help) {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 writer.WriteSnapshot(snapshot_data, ser, context_data, context_ser); 440 writer.WriteSnapshot(snapshot_data, ser, context_data, context_ser);
442 } 441 }
443 } 442 }
444 443
445 isolate->Dispose(); 444 isolate->Dispose();
446 V8::Dispose(); 445 V8::Dispose();
447 V8::ShutdownPlatform(); 446 V8::ShutdownPlatform();
448 delete platform; 447 delete platform;
449 return 0; 448 return 0;
450 } 449 }
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | test/cctest/cctest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698