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

Unified Diff: src/code-stub-assembler.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.cc
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc
index 1fb8a2152ee587eb5176e6c46707fbf7f679efd5..c85dd1ca28fa0d62261a0e3529daef03e6d79006 100644
--- a/src/code-stub-assembler.cc
+++ b/src/code-stub-assembler.cc
@@ -2976,6 +2976,14 @@ Node* CodeStubAssembler::IsJSFunction(Node* object) {
return HasInstanceType(object, JS_FUNCTION_TYPE);
}
+Node* CodeStubAssembler::IsJSFunctionInstanceType(Node* instance_type) {
Igor Sheludko 2017/01/12 10:12:57 I think it would be nice to have one helper method
+ return Word32Equal(instance_type, Int32Constant(JS_FUNCTION_TYPE));
+}
+
+Node* CodeStubAssembler::IsJSBoundFunctionInstanceType(Node* instance_type) {
+ return Word32Equal(instance_type, Int32Constant(JS_BOUND_FUNCTION_TYPE));
+}
+
Node* CodeStubAssembler::StringCharCodeAt(Node* string, Node* index,
ParameterMode parameter_mode) {
CSA_ASSERT(this, IsString(string));
« no previous file with comments | « src/code-stub-assembler.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698