| Index: src/bootstrapper.cc
|
| ===================================================================
|
| --- src/bootstrapper.cc (revision 3791)
|
| +++ src/bootstrapper.cc (working copy)
|
| @@ -1262,7 +1262,7 @@
|
| current->set_state(v8::UNVISITED);
|
| current = current->next();
|
| }
|
| - // Install auto extensions
|
| + // Install auto extensions. Coordinate with AutoExtensionsExist below.
|
| current = v8::RegisteredExtension::first_extension();
|
| while (current != NULL) {
|
| if (current->extension()->auto_enable())
|
| @@ -1615,6 +1615,19 @@
|
| }
|
|
|
|
|
| +// Are there extensions that should be installed even if no extension was
|
| +// specified?
|
| +bool Bootstrapper::AutoExtensionsExist() {
|
| + // Find auto extensions.
|
| + v8::RegisteredExtension* current = v8::RegisteredExtension::first_extension();
|
| + while (current != NULL) {
|
| + if (current->extension()->auto_enable()) return true;
|
| + current = current->next();
|
| + }
|
| + return FLAG_expose_gc;
|
| +}
|
| +
|
| +
|
| // Reserve space for statics needing saving and restoring.
|
| int Genesis::ArchiveSpacePerThread() {
|
| return sizeof(current_);
|
|
|