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/api-natives.h" | 8 #include "src/api-natives.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
(...skipping 2352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2363 } | 2363 } |
2364 | 2364 |
2365 Handle<AccessorInfo> script_is_embedder_debug_script = | 2365 Handle<AccessorInfo> script_is_embedder_debug_script = |
2366 Accessors::ScriptIsEmbedderDebugScriptInfo(isolate, attribs); | 2366 Accessors::ScriptIsEmbedderDebugScriptInfo(isolate, attribs); |
2367 { | 2367 { |
2368 AccessorConstantDescriptor d( | 2368 AccessorConstantDescriptor d( |
2369 Handle<Name>(Name::cast(script_is_embedder_debug_script->name())), | 2369 Handle<Name>(Name::cast(script_is_embedder_debug_script->name())), |
2370 script_is_embedder_debug_script, attribs); | 2370 script_is_embedder_debug_script, attribs); |
2371 script_map->AppendDescriptor(&d); | 2371 script_map->AppendDescriptor(&d); |
2372 } | 2372 } |
| 2373 |
| 2374 { |
| 2375 SimpleInstallFunction(container, "AsyncFunctionNext", |
| 2376 Builtins::kAsyncFunctionNext, 2, false); |
| 2377 SimpleInstallFunction(container, "AsyncFunctionThrow", |
| 2378 Builtins::kAsyncFunctionThrow, 2, false); |
| 2379 } |
2373 } | 2380 } |
2374 } | 2381 } |
2375 | 2382 |
2376 | 2383 |
2377 void Bootstrapper::ExportExperimentalFromRuntime(Isolate* isolate, | 2384 void Bootstrapper::ExportExperimentalFromRuntime(Isolate* isolate, |
2378 Handle<JSObject> container) { | 2385 Handle<JSObject> container) { |
2379 HandleScope scope(isolate); | 2386 HandleScope scope(isolate); |
2380 | 2387 |
2381 #define INITIALIZE_FLAG(FLAG) \ | 2388 #define INITIALIZE_FLAG(FLAG) \ |
2382 { \ | 2389 { \ |
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3646 } | 3653 } |
3647 | 3654 |
3648 | 3655 |
3649 // Called when the top-level V8 mutex is destroyed. | 3656 // Called when the top-level V8 mutex is destroyed. |
3650 void Bootstrapper::FreeThreadResources() { | 3657 void Bootstrapper::FreeThreadResources() { |
3651 DCHECK(!IsActive()); | 3658 DCHECK(!IsActive()); |
3652 } | 3659 } |
3653 | 3660 |
3654 } // namespace internal | 3661 } // namespace internal |
3655 } // namespace v8 | 3662 } // namespace v8 |
OLD | NEW |