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

Side by Side Diff: src/v8.cc

Issue 8957009: Introduce --print-all-code flag and infrastructure for one flag to imply another flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | Annotate | Revision Log
« src/flag-definitions.h ('K') | « src/flags.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 bool V8::has_been_setup_ = false; 50 bool V8::has_been_setup_ = false;
51 bool V8::has_been_disposed_ = false; 51 bool V8::has_been_disposed_ = false;
52 bool V8::has_fatal_error_ = false; 52 bool V8::has_fatal_error_ = false;
53 bool V8::use_crankshaft_ = true; 53 bool V8::use_crankshaft_ = true;
54 54
55 static Mutex* entropy_mutex = OS::CreateMutex(); 55 static Mutex* entropy_mutex = OS::CreateMutex();
56 static EntropySource entropy_source; 56 static EntropySource entropy_source;
57 57
58 58
59 bool V8::Initialize(Deserializer* des) { 59 bool V8::Initialize(Deserializer* des) {
60 // Setting --harmony implies all other harmony flags. 60 FlagList::EnforceFlagImplications();
61 // TODO(rossberg): Is there a better place to put this?
62 if (FLAG_harmony) {
63 FLAG_harmony_typeof = true;
64 FLAG_harmony_scoping = true;
65 FLAG_harmony_proxies = true;
66 FLAG_harmony_collections = true;
67 }
68 61
69 InitializeOncePerProcess(); 62 InitializeOncePerProcess();
70 63
71 // The current thread may not yet had entered an isolate to run. 64 // The current thread may not yet had entered an isolate to run.
72 // Note the Isolate::Current() may be non-null because for various 65 // Note the Isolate::Current() may be non-null because for various
73 // initialization purposes an initializing thread may be assigned an isolate 66 // initialization purposes an initializing thread may be assigned an isolate
74 // but not actually enter it. 67 // but not actually enter it.
75 if (i::Isolate::CurrentPerIsolateThreadData() == NULL) { 68 if (i::Isolate::CurrentPerIsolateThreadData() == NULL) {
76 i::Isolate::EnterDefaultIsolate(); 69 i::Isolate::EnterDefaultIsolate();
77 } 70 }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 ElementsAccessor::InitializeOncePerProcess(); 222 ElementsAccessor::InitializeOncePerProcess();
230 223
231 if (FLAG_stress_compaction) { 224 if (FLAG_stress_compaction) {
232 FLAG_force_marking_deque_overflows = true; 225 FLAG_force_marking_deque_overflows = true;
233 FLAG_gc_global = true; 226 FLAG_gc_global = true;
234 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; 227 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2;
235 } 228 }
236 } 229 }
237 230
238 } } // namespace v8::internal 231 } } // namespace v8::internal
OLDNEW
« src/flag-definitions.h ('K') | « src/flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698