| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "src/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/extensions/externalize-string-extension.h" | 9 #include "src/extensions/externalize-string-extension.h" |
| 10 #include "src/extensions/free-buffer-extension.h" | 10 #include "src/extensions/free-buffer-extension.h" |
| (...skipping 2343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2354 isolate->bootstrapper()->extensions_cache(), | 2354 isolate->bootstrapper()->extensions_cache(), |
| 2355 extension, | 2355 extension, |
| 2356 Handle<Context>(isolate->context()), | 2356 Handle<Context>(isolate->context()), |
| 2357 false); | 2357 false); |
| 2358 ASSERT(isolate->has_pending_exception() != result); | 2358 ASSERT(isolate->has_pending_exception() != result); |
| 2359 if (!result) { | 2359 if (!result) { |
| 2360 // We print out the name of the extension that fail to install. | 2360 // We print out the name of the extension that fail to install. |
| 2361 // When an error is thrown during bootstrapping we automatically print | 2361 // When an error is thrown during bootstrapping we automatically print |
| 2362 // the line number at which this happened to the console in the isolate | 2362 // the line number at which this happened to the console in the isolate |
| 2363 // error throwing functionality. | 2363 // error throwing functionality. |
| 2364 OS::PrintError("Error installing extension '%s'.\n", | 2364 base::OS::PrintError("Error installing extension '%s'.\n", |
| 2365 current->extension()->name()); | 2365 current->extension()->name()); |
| 2366 isolate->clear_pending_exception(); | 2366 isolate->clear_pending_exception(); |
| 2367 } | 2367 } |
| 2368 extension_states->set_state(current, INSTALLED); | 2368 extension_states->set_state(current, INSTALLED); |
| 2369 isolate->NotifyExtensionInstalled(); | 2369 isolate->NotifyExtensionInstalled(); |
| 2370 return result; | 2370 return result; |
| 2371 } | 2371 } |
| 2372 | 2372 |
| 2373 | 2373 |
| 2374 bool Genesis::InstallJSBuiltins(Handle<JSBuiltinsObject> builtins) { | 2374 bool Genesis::InstallJSBuiltins(Handle<JSBuiltinsObject> builtins) { |
| 2375 HandleScope scope(isolate()); | 2375 HandleScope scope(isolate()); |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2741 return from + sizeof(NestingCounterType); | 2741 return from + sizeof(NestingCounterType); |
| 2742 } | 2742 } |
| 2743 | 2743 |
| 2744 | 2744 |
| 2745 // Called when the top-level V8 mutex is destroyed. | 2745 // Called when the top-level V8 mutex is destroyed. |
| 2746 void Bootstrapper::FreeThreadResources() { | 2746 void Bootstrapper::FreeThreadResources() { |
| 2747 ASSERT(!IsActive()); | 2747 ASSERT(!IsActive()); |
| 2748 } | 2748 } |
| 2749 | 2749 |
| 2750 } } // namespace v8::internal | 2750 } } // namespace v8::internal |
| OLD | NEW |