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

Side by Side Diff: src/mksnapshot.cc

Issue 763273002: Introduce a kill-switch for shipping features. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test that was failing under nosnap Created 6 years 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
« no previous file with comments | « src/flag-definitions.h ('k') | test/cctest/test-api.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 <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
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
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 }
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698