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

Side by Side Diff: src/code-stub-assembler.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 | « src/builtins/builtins-promise.cc ('k') | src/code-stub-assembler.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 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 649
650 // Throws a TypeError for {method_name} if {value} is not of the given 650 // Throws a TypeError for {method_name} if {value} is not of the given
651 // instance type. Returns {value}'s map. 651 // instance type. Returns {value}'s map.
652 Node* ThrowIfNotInstanceType(Node* context, Node* value, 652 Node* ThrowIfNotInstanceType(Node* context, Node* value,
653 InstanceType instance_type, 653 InstanceType instance_type,
654 char const* method_name); 654 char const* method_name);
655 655
656 // Type checks. 656 // Type checks.
657 // Check whether the map is for an object with special properties, such as a 657 // Check whether the map is for an object with special properties, such as a
658 // JSProxy or an object with interceptors. 658 // JSProxy or an object with interceptors.
659 Node* InstanceTypeEqual(Node* instance_type, int type);
659 Node* IsSpecialReceiverMap(Node* map); 660 Node* IsSpecialReceiverMap(Node* map);
660 Node* IsSpecialReceiverInstanceType(Node* instance_type); 661 Node* IsSpecialReceiverInstanceType(Node* instance_type);
661 Node* IsStringInstanceType(Node* instance_type); 662 Node* IsStringInstanceType(Node* instance_type);
662 Node* IsString(Node* object); 663 Node* IsString(Node* object);
663 Node* IsJSObject(Node* object); 664 Node* IsJSObject(Node* object);
664 Node* IsJSGlobalProxy(Node* object); 665 Node* IsJSGlobalProxy(Node* object);
665 Node* IsJSReceiverInstanceType(Node* instance_type); 666 Node* IsJSReceiverInstanceType(Node* instance_type);
666 Node* IsJSReceiver(Node* object); 667 Node* IsJSReceiver(Node* object);
667 Node* IsMap(Node* object); 668 Node* IsMap(Node* object);
668 Node* IsCallableMap(Node* map); 669 Node* IsCallableMap(Node* map);
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 } 1270 }
1270 #else 1271 #else
1271 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1272 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1272 #endif 1273 #endif
1273 1274
1274 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1275 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1275 1276
1276 } // namespace internal 1277 } // namespace internal
1277 } // namespace v8 1278 } // namespace v8
1278 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1279 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-promise.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698