OLD | NEW |
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Setting --harmony implies all other harmony flags. |
61 // TODO(rossberg): Is there a better place to put this? | 61 // TODO(rossberg): Is there a better place to put this? |
62 if (FLAG_harmony) { | 62 if (FLAG_harmony) { |
63 FLAG_harmony_typeof = true; | 63 FLAG_harmony_typeof = true; |
64 FLAG_harmony_scoping = true; | 64 FLAG_harmony_scoping = true; |
65 FLAG_harmony_proxies = true; | 65 FLAG_harmony_proxies = true; |
66 FLAG_harmony_weakmaps = true; | 66 FLAG_harmony_collections = true; |
67 } | 67 } |
68 | 68 |
69 InitializeOncePerProcess(); | 69 InitializeOncePerProcess(); |
70 | 70 |
71 // The current thread may not yet had entered an isolate to run. | 71 // The current thread may not yet had entered an isolate to run. |
72 // Note the Isolate::Current() may be non-null because for various | 72 // Note the Isolate::Current() may be non-null because for various |
73 // initialization purposes an initializing thread may be assigned an isolate | 73 // initialization purposes an initializing thread may be assigned an isolate |
74 // but not actually enter it. | 74 // but not actually enter it. |
75 if (i::Isolate::CurrentPerIsolateThreadData() == NULL) { | 75 if (i::Isolate::CurrentPerIsolateThreadData() == NULL) { |
76 i::Isolate::EnterDefaultIsolate(); | 76 i::Isolate::EnterDefaultIsolate(); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 ElementsAccessor::InitializeOncePerProcess(); | 227 ElementsAccessor::InitializeOncePerProcess(); |
228 | 228 |
229 if (FLAG_stress_compaction) { | 229 if (FLAG_stress_compaction) { |
230 FLAG_force_marking_deque_overflows = true; | 230 FLAG_force_marking_deque_overflows = true; |
231 FLAG_gc_global = true; | 231 FLAG_gc_global = true; |
232 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; | 232 FLAG_max_new_space_size = (1 << (kPageSizeBits - 10)) * 2; |
233 } | 233 } |
234 } | 234 } |
235 | 235 |
236 } } // namespace v8::internal | 236 } } // namespace v8::internal |
OLD | NEW |