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

Side by Side Diff: src/mksnapshot.cc

Issue 365863003: Reland^2 r22105 "Remove static initializer from isolate" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates 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/isolate.cc ('k') | src/sampler.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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 fprintf(stderr, "%s\n", *message_line); 310 fprintf(stderr, "%s\n", *message_line);
311 for (int i = 0; i <= message->GetEndColumn(); ++i) { 311 for (int i = 0; i <= message->GetEndColumn(); ++i) {
312 fprintf(stderr, "%c", i < message->GetStartColumn() ? ' ' : '^'); 312 fprintf(stderr, "%c", i < message->GetStartColumn() ? ' ' : '^');
313 } 313 }
314 fprintf(stderr, "\n"); 314 fprintf(stderr, "\n");
315 } 315 }
316 316
317 317
318 int main(int argc, char** argv) { 318 int main(int argc, char** argv) {
319 V8::InitializeICU(); 319 V8::InitializeICU();
320 i::Isolate::SetCrashIfDefaultIsolateInitialized();
321 i::CpuFeatures::Probe(true); 320 i::CpuFeatures::Probe(true);
322 321
323 // By default, log code create information in the snapshot. 322 // By default, log code create information in the snapshot.
324 i::FLAG_log_code = true; 323 i::FLAG_log_code = true;
325 324
326 // Print the usage if an error occurs when parsing the command line 325 // Print the usage if an error occurs when parsing the command line
327 // flags or if the help flag is set. 326 // flags or if the help flag is set.
328 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); 327 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true);
329 if (result > 0 || argc != 2 || i::FLAG_help) { 328 if (result > 0 || argc != 2 || i::FLAG_help) {
330 ::printf("Usage: %s [flag] ... outfile\n", argv[0]); 329 ::printf("Usage: %s [flag] ... outfile\n", argv[0]);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 writer.SetCompressor(&bzip2); 435 writer.SetCompressor(&bzip2);
437 #endif 436 #endif
438 writer.WriteSnapshot(snapshot_data, ser, context_data, context_ser); 437 writer.WriteSnapshot(snapshot_data, ser, context_data, context_ser);
439 } 438 }
440 } 439 }
441 440
442 isolate->Dispose(); 441 isolate->Dispose();
443 V8::Dispose(); 442 V8::Dispose();
444 return 0; 443 return 0;
445 } 444 }
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698