| 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 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1924 { // Internal: ResolvePromise | 1924 { // Internal: ResolvePromise |
| 1925 Handle<JSFunction> function = | 1925 Handle<JSFunction> function = |
| 1926 SimpleCreateFunction(isolate, factory->empty_string(), | 1926 SimpleCreateFunction(isolate, factory->empty_string(), |
| 1927 Builtins::kResolvePromise, 2, false); | 1927 Builtins::kResolvePromise, 2, false); |
| 1928 InstallWithIntrinsicDefaultProto(isolate, function, | 1928 InstallWithIntrinsicDefaultProto(isolate, function, |
| 1929 Context::PROMISE_RESOLVE_INDEX); | 1929 Context::PROMISE_RESOLVE_INDEX); |
| 1930 } | 1930 } |
| 1931 | 1931 |
| 1932 { // Internal: PromiseHandle | 1932 { // Internal: PromiseHandle |
| 1933 Handle<JSFunction> function = SimpleCreateFunction( | 1933 Handle<JSFunction> function = SimpleCreateFunction( |
| 1934 isolate, factory->empty_string(), Builtins::kPromiseHandle, 4, true); | 1934 isolate, factory->empty_string(), Builtins::kPromiseHandle, 6, true); |
| 1935 InstallWithIntrinsicDefaultProto(isolate, function, | 1935 InstallWithIntrinsicDefaultProto(isolate, function, |
| 1936 Context::PROMISE_HANDLE_INDEX); | 1936 Context::PROMISE_HANDLE_INDEX); |
| 1937 // Set up catch prediction | 1937 // Set up catch prediction |
| 1938 Handle<Code> promise_handle = isolate->builtins()->PromiseHandle(); | 1938 Handle<Code> promise_handle = isolate->builtins()->PromiseHandle(); |
| 1939 promise_handle->set_is_promise_rejection(true); | 1939 promise_handle->set_is_promise_rejection(true); |
| 1940 } | 1940 } |
| 1941 | 1941 |
| 1942 { // Internal: PromiseHandleReject | 1942 { // Internal: PromiseHandleReject |
| 1943 Handle<JSFunction> function = | 1943 Handle<JSFunction> function = |
| 1944 SimpleCreateFunction(isolate, factory->empty_string(), | 1944 SimpleCreateFunction(isolate, factory->empty_string(), |
| (...skipping 2730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4675 } | 4675 } |
| 4676 | 4676 |
| 4677 | 4677 |
| 4678 // Called when the top-level V8 mutex is destroyed. | 4678 // Called when the top-level V8 mutex is destroyed. |
| 4679 void Bootstrapper::FreeThreadResources() { | 4679 void Bootstrapper::FreeThreadResources() { |
| 4680 DCHECK(!IsActive()); | 4680 DCHECK(!IsActive()); |
| 4681 } | 4681 } |
| 4682 | 4682 |
| 4683 } // namespace internal | 4683 } // namespace internal |
| 4684 } // namespace v8 | 4684 } // namespace v8 |
| OLD | NEW |