Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: src/bootstrapper.cc

Issue 2633443002: [promisehook] Pass deferred promise to Before/After callback (Closed)
Patch Set: Remove adaptor Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698