| 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 2711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4656 } | 4656 } |
| 4657 | 4657 |
| 4658 | 4658 |
| 4659 // Called when the top-level V8 mutex is destroyed. | 4659 // Called when the top-level V8 mutex is destroyed. |
| 4660 void Bootstrapper::FreeThreadResources() { | 4660 void Bootstrapper::FreeThreadResources() { |
| 4661 DCHECK(!IsActive()); | 4661 DCHECK(!IsActive()); |
| 4662 } | 4662 } |
| 4663 | 4663 |
| 4664 } // namespace internal | 4664 } // namespace internal |
| 4665 } // namespace v8 | 4665 } // namespace v8 |
| OLD | NEW |