| 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 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1927 { // Internal: ResolvePromise | 1927 { // Internal: ResolvePromise |
| 1928 Handle<JSFunction> function = | 1928 Handle<JSFunction> function = |
| 1929 SimpleCreateFunction(isolate, factory->empty_string(), | 1929 SimpleCreateFunction(isolate, factory->empty_string(), |
| 1930 Builtins::kResolvePromise, 2, false); | 1930 Builtins::kResolvePromise, 2, false); |
| 1931 InstallWithIntrinsicDefaultProto(isolate, function, | 1931 InstallWithIntrinsicDefaultProto(isolate, function, |
| 1932 Context::PROMISE_RESOLVE_INDEX); | 1932 Context::PROMISE_RESOLVE_INDEX); |
| 1933 } | 1933 } |
| 1934 | 1934 |
| 1935 { // Internal: PromiseHandle | 1935 { // Internal: PromiseHandle |
| 1936 Handle<JSFunction> function = SimpleCreateFunction( | 1936 Handle<JSFunction> function = SimpleCreateFunction( |
| 1937 isolate, factory->empty_string(), Builtins::kPromiseHandle, 4, true); | 1937 isolate, factory->empty_string(), Builtins::kPromiseHandle, 6, true); |
| 1938 InstallWithIntrinsicDefaultProto(isolate, function, | 1938 InstallWithIntrinsicDefaultProto(isolate, function, |
| 1939 Context::PROMISE_HANDLE_INDEX); | 1939 Context::PROMISE_HANDLE_INDEX); |
| 1940 // Set up catch prediction | 1940 // Set up catch prediction |
| 1941 Handle<Code> promise_handle = isolate->builtins()->PromiseHandle(); | 1941 Handle<Code> promise_handle = isolate->builtins()->PromiseHandle(); |
| 1942 promise_handle->set_is_promise_rejection(true); | 1942 promise_handle->set_is_promise_rejection(true); |
| 1943 } | 1943 } |
| 1944 | 1944 |
| 1945 { // Internal: PromiseHandleReject | 1945 { // Internal: PromiseHandleReject |
| 1946 Handle<JSFunction> function = | 1946 Handle<JSFunction> function = |
| 1947 SimpleCreateFunction(isolate, factory->empty_string(), | 1947 SimpleCreateFunction(isolate, factory->empty_string(), |
| (...skipping 2785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4733 } | 4733 } |
| 4734 | 4734 |
| 4735 | 4735 |
| 4736 // Called when the top-level V8 mutex is destroyed. | 4736 // Called when the top-level V8 mutex is destroyed. |
| 4737 void Bootstrapper::FreeThreadResources() { | 4737 void Bootstrapper::FreeThreadResources() { |
| 4738 DCHECK(!IsActive()); | 4738 DCHECK(!IsActive()); |
| 4739 } | 4739 } |
| 4740 | 4740 |
| 4741 } // namespace internal | 4741 } // namespace internal |
| 4742 } // namespace v8 | 4742 } // namespace v8 |
| OLD | NEW |