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/base/ieee754.h" | 9 #include "src/base/ieee754.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 3080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3091 | 3091 |
3092 Handle<AccessorInfo> script_source_mapping_url = | 3092 Handle<AccessorInfo> script_source_mapping_url = |
3093 Accessors::ScriptSourceMappingUrlInfo(isolate, attribs); | 3093 Accessors::ScriptSourceMappingUrlInfo(isolate, attribs); |
3094 { | 3094 { |
3095 AccessorConstantDescriptor d( | 3095 AccessorConstantDescriptor d( |
3096 Handle<Name>(Name::cast(script_source_mapping_url->name())), | 3096 Handle<Name>(Name::cast(script_source_mapping_url->name())), |
3097 script_source_mapping_url, attribs); | 3097 script_source_mapping_url, attribs); |
3098 script_map->AppendDescriptor(&d); | 3098 script_map->AppendDescriptor(&d); |
3099 } | 3099 } |
3100 | 3100 |
3101 Handle<AccessorInfo> script_is_embedder_debug_script = | |
3102 Accessors::ScriptIsEmbedderDebugScriptInfo(isolate, attribs); | |
3103 { | |
3104 AccessorConstantDescriptor d( | |
3105 Handle<Name>(Name::cast(script_is_embedder_debug_script->name())), | |
3106 script_is_embedder_debug_script, attribs); | |
3107 script_map->AppendDescriptor(&d); | |
3108 } | |
3109 | |
3110 { | 3101 { |
3111 PrototypeIterator iter(native_context->sloppy_async_function_map()); | 3102 PrototypeIterator iter(native_context->sloppy_async_function_map()); |
3112 Handle<JSObject> async_function_prototype(iter.GetCurrent<JSObject>()); | 3103 Handle<JSObject> async_function_prototype(iter.GetCurrent<JSObject>()); |
3113 | 3104 |
3114 static const bool kUseStrictFunctionMap = true; | 3105 static const bool kUseStrictFunctionMap = true; |
3115 Handle<JSFunction> async_function_constructor = InstallFunction( | 3106 Handle<JSFunction> async_function_constructor = InstallFunction( |
3116 container, "AsyncFunction", JS_FUNCTION_TYPE, JSFunction::kSize, | 3107 container, "AsyncFunction", JS_FUNCTION_TYPE, JSFunction::kSize, |
3117 async_function_prototype, Builtins::kAsyncFunctionConstructor, | 3108 async_function_prototype, Builtins::kAsyncFunctionConstructor, |
3118 kUseStrictFunctionMap); | 3109 kUseStrictFunctionMap); |
3119 async_function_constructor->shared()->DontAdaptArguments(); | 3110 async_function_constructor->shared()->DontAdaptArguments(); |
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4566 } | 4557 } |
4567 | 4558 |
4568 | 4559 |
4569 // Called when the top-level V8 mutex is destroyed. | 4560 // Called when the top-level V8 mutex is destroyed. |
4570 void Bootstrapper::FreeThreadResources() { | 4561 void Bootstrapper::FreeThreadResources() { |
4571 DCHECK(!IsActive()); | 4562 DCHECK(!IsActive()); |
4572 } | 4563 } |
4573 | 4564 |
4574 } // namespace internal | 4565 } // namespace internal |
4575 } // namespace v8 | 4566 } // namespace v8 |
OLD | NEW |