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

Side by Side Diff: src/bootstrapper.cc

Issue 2581503003: [promisehook] Store promise in PromiseReactionJob (Closed)
Patch Set: rebase correctly Created 4 years 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') | src/builtins/builtins-promise.cc » ('J')
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 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | src/builtins/builtins.h » ('j') | src/builtins/builtins-promise.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698