OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2176 Isolate* isolate = native_context->GetIsolate(); | 2176 Isolate* isolate = native_context->GetIsolate(); |
2177 ExtensionStates extension_states; // All extensions have state UNVISITED. | 2177 ExtensionStates extension_states; // All extensions have state UNVISITED. |
2178 // Install auto extensions. | 2178 // Install auto extensions. |
2179 v8::RegisteredExtension* current = v8::RegisteredExtension::first_extension(); | 2179 v8::RegisteredExtension* current = v8::RegisteredExtension::first_extension(); |
2180 while (current != NULL) { | 2180 while (current != NULL) { |
2181 if (current->extension()->auto_enable()) | 2181 if (current->extension()->auto_enable()) |
2182 InstallExtension(isolate, current, &extension_states); | 2182 InstallExtension(isolate, current, &extension_states); |
2183 current = current->next(); | 2183 current = current->next(); |
2184 } | 2184 } |
2185 | 2185 |
2186 if (FLAG_expose_gc) InstallExtension(isolate, "v8/gc", &extension_states); | 2186 if (FLAG_expose_gc || FLAG_expose_gc_as) |
| 2187 InstallExtension(isolate, "v8/gc", &extension_states); |
2187 if (FLAG_expose_externalize_string) { | 2188 if (FLAG_expose_externalize_string) { |
2188 InstallExtension(isolate, "v8/externalize", &extension_states); | 2189 InstallExtension(isolate, "v8/externalize", &extension_states); |
2189 } | 2190 } |
2190 if (FLAG_track_gc_object_stats) { | 2191 if (FLAG_track_gc_object_stats) { |
2191 InstallExtension(isolate, "v8/statistics", &extension_states); | 2192 InstallExtension(isolate, "v8/statistics", &extension_states); |
2192 } | 2193 } |
2193 | 2194 |
2194 if (extensions == NULL) return true; | 2195 if (extensions == NULL) return true; |
2195 // Install required extensions | 2196 // Install required extensions |
2196 int count = v8::ImplementationUtilities::GetNameCount(extensions); | 2197 int count = v8::ImplementationUtilities::GetNameCount(extensions); |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2554 return from + sizeof(NestingCounterType); | 2555 return from + sizeof(NestingCounterType); |
2555 } | 2556 } |
2556 | 2557 |
2557 | 2558 |
2558 // Called when the top-level V8 mutex is destroyed. | 2559 // Called when the top-level V8 mutex is destroyed. |
2559 void Bootstrapper::FreeThreadResources() { | 2560 void Bootstrapper::FreeThreadResources() { |
2560 ASSERT(!IsActive()); | 2561 ASSERT(!IsActive()); |
2561 } | 2562 } |
2562 | 2563 |
2563 } } // namespace v8::internal | 2564 } } // namespace v8::internal |
OLD | NEW |