| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |