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

Side by Side Diff: src/builtins/builtins-promise.h

Issue 2628863002: Do security checks in the promise constructor (Closed)
Patch Set: updates 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 | « include/v8.h ('k') | src/builtins/builtins-promise.cc » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/code-stub-assembler.h" 5 #include "src/code-stub-assembler.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 typedef compiler::Node Node; 10 typedef compiler::Node Node;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 Node* CreatePromiseGetCapabilitiesExecutorContext(Node* native_context, 75 Node* CreatePromiseGetCapabilitiesExecutorContext(Node* native_context,
76 Node* promise_capability); 76 Node* promise_capability);
77 77
78 void PromiseFulfill(Node* context, Node* promise, Node* result, 78 void PromiseFulfill(Node* context, Node* promise, Node* result,
79 v8::Promise::PromiseState status); 79 v8::Promise::PromiseState status);
80 80
81 Node* NewPromiseCapability(Node* context, Node* constructor, 81 Node* NewPromiseCapability(Node* context, Node* constructor,
82 Node* debug_event = nullptr); 82 Node* debug_event = nullptr);
83 83
84 void BranchIfAccessCheckFailed(Node* context, Node* native_context,
85 Node* promise_constructor, Node* executor,
86 Label* if_noaccess);
87
84 protected: 88 protected:
85 void PromiseInit(Node* promise); 89 void PromiseInit(Node* promise);
86 90
87 private: 91 private:
88 Node* AllocateJSPromise(Node* context); 92 Node* AllocateJSPromise(Node* context);
89 }; 93 };
90 94
91 } // namespace internal 95 } // namespace internal
92 } // namespace v8 96 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/builtins/builtins-promise.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698