| 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 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1918 { // Internal: ResolvePromise | 1918 { // Internal: ResolvePromise |
| 1919 Handle<JSFunction> function = | 1919 Handle<JSFunction> function = |
| 1920 SimpleCreateFunction(isolate, factory->empty_string(), | 1920 SimpleCreateFunction(isolate, factory->empty_string(), |
| 1921 Builtins::kResolvePromise, 2, false); | 1921 Builtins::kResolvePromise, 2, false); |
| 1922 InstallWithIntrinsicDefaultProto(isolate, function, | 1922 InstallWithIntrinsicDefaultProto(isolate, function, |
| 1923 Context::PROMISE_RESOLVE_INDEX); | 1923 Context::PROMISE_RESOLVE_INDEX); |
| 1924 } | 1924 } |
| 1925 | 1925 |
| 1926 { // Internal: PromiseHandle | 1926 { // Internal: PromiseHandle |
| 1927 Handle<JSFunction> function = SimpleCreateFunction( | 1927 Handle<JSFunction> function = SimpleCreateFunction( |
| 1928 isolate, factory->empty_string(), Builtins::kPromiseHandle, 3, true); | 1928 isolate, factory->empty_string(), Builtins::kPromiseHandle, 4, true); |
| 1929 InstallWithIntrinsicDefaultProto(isolate, function, | 1929 InstallWithIntrinsicDefaultProto(isolate, function, |
| 1930 Context::PROMISE_HANDLE_INDEX); | 1930 Context::PROMISE_HANDLE_INDEX); |
| 1931 // Set up catch prediction | 1931 // Set up catch prediction |
| 1932 Handle<Code> promise_handle = isolate->builtins()->PromiseHandle(); | 1932 Handle<Code> promise_handle = isolate->builtins()->PromiseHandle(); |
| 1933 promise_handle->set_is_promise_rejection(true); | 1933 promise_handle->set_is_promise_rejection(true); |
| 1934 } | 1934 } |
| 1935 | 1935 |
| 1936 { // Internal: PromiseHandleReject | 1936 { // Internal: PromiseHandleReject |
| 1937 Handle<JSFunction> function = | 1937 Handle<JSFunction> function = |
| 1938 SimpleCreateFunction(isolate, factory->empty_string(), | 1938 SimpleCreateFunction(isolate, factory->empty_string(), |
| (...skipping 2745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4684 } | 4684 } |
| 4685 | 4685 |
| 4686 | 4686 |
| 4687 // Called when the top-level V8 mutex is destroyed. | 4687 // Called when the top-level V8 mutex is destroyed. |
| 4688 void Bootstrapper::FreeThreadResources() { | 4688 void Bootstrapper::FreeThreadResources() { |
| 4689 DCHECK(!IsActive()); | 4689 DCHECK(!IsActive()); |
| 4690 } | 4690 } |
| 4691 | 4691 |
| 4692 } // namespace internal | 4692 } // namespace internal |
| 4693 } // namespace v8 | 4693 } // namespace v8 |
| OLD | NEW |