| OLD | NEW |
| 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 <signal.h> | 6 #include <signal.h> |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include "src/v8.h" | 9 #include "src/v8.h" |
| 10 | 10 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 fprintf(stderr, "%c", i < message->GetStartColumn() ? ' ' : '^'); | 255 fprintf(stderr, "%c", i < message->GetStartColumn() ? ' ' : '^'); |
| 256 } | 256 } |
| 257 fprintf(stderr, "\n"); | 257 fprintf(stderr, "\n"); |
| 258 } | 258 } |
| 259 | 259 |
| 260 | 260 |
| 261 int main(int argc, char** argv) { | 261 int main(int argc, char** argv) { |
| 262 // By default, log code create information in the snapshot. | 262 // By default, log code create information in the snapshot. |
| 263 i::FLAG_log_code = true; | 263 i::FLAG_log_code = true; |
| 264 | 264 |
| 265 // Omit from the snapshot natives for features that can be turned off |
| 266 // at runtime. |
| 267 i::FLAG_harmony_shipping = false; |
| 268 |
| 265 // Print the usage if an error occurs when parsing the command line | 269 // Print the usage if an error occurs when parsing the command line |
| 266 // flags or if the help flag is set. | 270 // flags or if the help flag is set. |
| 267 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); | 271 int result = i::FlagList::SetFlagsFromCommandLine(&argc, argv, true); |
| 268 if (result > 0 || argc != 2 || i::FLAG_help) { | 272 if (result > 0 || argc != 2 || i::FLAG_help) { |
| 269 ::printf("Usage: %s [flag] ... outfile\n", argv[0]); | 273 ::printf("Usage: %s [flag] ... outfile\n", argv[0]); |
| 270 i::FlagList::PrintHelp(); | 274 i::FlagList::PrintHelp(); |
| 271 return !i::FLAG_help; | 275 return !i::FLAG_help; |
| 272 } | 276 } |
| 273 | 277 |
| 274 i::CpuFeatures::Probe(true); | 278 i::CpuFeatures::Probe(true); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 context_ser); | 378 context_ser); |
| 375 } | 379 } |
| 376 } | 380 } |
| 377 | 381 |
| 378 isolate->Dispose(); | 382 isolate->Dispose(); |
| 379 V8::Dispose(); | 383 V8::Dispose(); |
| 380 V8::ShutdownPlatform(); | 384 V8::ShutdownPlatform(); |
| 381 delete platform; | 385 delete platform; |
| 382 return 0; | 386 return 0; |
| 383 } | 387 } |
| OLD | NEW |