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 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1940 { // Internal: ResolvePromise | 1940 { // Internal: ResolvePromise |
1941 Handle<JSFunction> function = | 1941 Handle<JSFunction> function = |
1942 SimpleCreateFunction(isolate, factory->empty_string(), | 1942 SimpleCreateFunction(isolate, factory->empty_string(), |
1943 Builtins::kResolvePromise, 2, false); | 1943 Builtins::kResolvePromise, 2, false); |
1944 InstallWithIntrinsicDefaultProto(isolate, function, | 1944 InstallWithIntrinsicDefaultProto(isolate, function, |
1945 Context::PROMISE_RESOLVE_INDEX); | 1945 Context::PROMISE_RESOLVE_INDEX); |
1946 } | 1946 } |
1947 | 1947 |
1948 { // Internal: PromiseHandle | 1948 { // Internal: PromiseHandle |
1949 Handle<JSFunction> function = SimpleCreateFunction( | 1949 Handle<JSFunction> function = SimpleCreateFunction( |
1950 isolate, factory->empty_string(), Builtins::kPromiseHandle, 6, true); | 1950 isolate, factory->empty_string(), Builtins::kPromiseHandle, 5, false); |
1951 InstallWithIntrinsicDefaultProto(isolate, function, | 1951 InstallWithIntrinsicDefaultProto(isolate, function, |
1952 Context::PROMISE_HANDLE_INDEX); | 1952 Context::PROMISE_HANDLE_INDEX); |
1953 // Set up catch prediction | 1953 // Set up catch prediction |
1954 Handle<Code> promise_handle = isolate->builtins()->PromiseHandle(); | 1954 Handle<Code> promise_handle = isolate->builtins()->PromiseHandle(); |
1955 promise_handle->set_is_promise_rejection(true); | 1955 promise_handle->set_is_promise_rejection(true); |
1956 } | 1956 } |
1957 | 1957 |
1958 { // Internal: PromiseHandleReject | 1958 { // Internal: PromiseHandleReject |
1959 Handle<JSFunction> function = | 1959 Handle<JSFunction> function = |
1960 SimpleCreateFunction(isolate, factory->empty_string(), | 1960 SimpleCreateFunction(isolate, factory->empty_string(), |
(...skipping 2779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4740 } | 4740 } |
4741 | 4741 |
4742 | 4742 |
4743 // Called when the top-level V8 mutex is destroyed. | 4743 // Called when the top-level V8 mutex is destroyed. |
4744 void Bootstrapper::FreeThreadResources() { | 4744 void Bootstrapper::FreeThreadResources() { |
4745 DCHECK(!IsActive()); | 4745 DCHECK(!IsActive()); |
4746 } | 4746 } |
4747 | 4747 |
4748 } // namespace internal | 4748 } // namespace internal |
4749 } // namespace v8 | 4749 } // namespace v8 |
OLD | NEW |