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

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

Issue 2628863002: Do security checks in the promise constructor (Closed)
Patch Set: 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
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* promise_constructor,
85 Node* executor, Label* if_noaccess);
86
84 protected: 87 protected:
85 void PromiseInit(Node* promise); 88 void PromiseInit(Node* promise);
86 89
87 private: 90 private:
88 Node* AllocateJSPromise(Node* context); 91 Node* AllocateJSPromise(Node* context);
89 }; 92 };
90 93
91 } // namespace internal 94 } // namespace internal
92 } // namespace v8 95 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/builtins/builtins-promise.cc » ('j') | src/builtins/builtins-promise.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698