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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 Node* IsCallableMap(Node* map); | 640 Node* IsCallableMap(Node* map); |
641 Node* IsName(Node* object); | 641 Node* IsName(Node* object); |
642 Node* IsJSValue(Node* object); | 642 Node* IsJSValue(Node* object); |
643 Node* IsJSArray(Node* object); | 643 Node* IsJSArray(Node* object); |
644 Node* IsNativeContext(Node* object); | 644 Node* IsNativeContext(Node* object); |
645 Node* IsWeakCell(Node* object); | 645 Node* IsWeakCell(Node* object); |
646 Node* IsFixedDoubleArray(Node* object); | 646 Node* IsFixedDoubleArray(Node* object); |
647 Node* IsHashTable(Node* object); | 647 Node* IsHashTable(Node* object); |
648 Node* IsDictionary(Node* object); | 648 Node* IsDictionary(Node* object); |
649 Node* IsUnseededNumberDictionary(Node* object); | 649 Node* IsUnseededNumberDictionary(Node* object); |
| 650 Node* IsConstructorMap(Node* map); |
| 651 Node* IsJSFunction(Node* object); |
650 | 652 |
651 // ElementsKind helpers: | 653 // ElementsKind helpers: |
652 Node* IsFastElementsKind(Node* elements_kind); | 654 Node* IsFastElementsKind(Node* elements_kind); |
653 Node* IsHoleyFastElementsKind(Node* elements_kind); | 655 Node* IsHoleyFastElementsKind(Node* elements_kind); |
654 | 656 |
655 // String helpers. | 657 // String helpers. |
656 // Load a character from a String (might flatten a ConsString). | 658 // Load a character from a String (might flatten a ConsString). |
657 Node* StringCharCodeAt(Node* string, Node* smi_index); | 659 Node* StringCharCodeAt(Node* string, Node* smi_index); |
658 // Return the single character string with only {code}. | 660 // Return the single character string with only {code}. |
659 Node* StringFromCharCode(Node* code); | 661 Node* StringFromCharCode(Node* code); |
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 // instructions, e.g. Branch(SameValue(...), &label). | 1063 // instructions, e.g. Branch(SameValue(...), &label). |
1062 Node* SameValue(Node* lhs, Node* rhs, Node* context); | 1064 Node* SameValue(Node* lhs, Node* rhs, Node* context); |
1063 | 1065 |
1064 Node* HasProperty( | 1066 Node* HasProperty( |
1065 Node* object, Node* key, Node* context, | 1067 Node* object, Node* key, Node* context, |
1066 Runtime::FunctionId fallback_runtime_function_id = Runtime::kHasProperty); | 1068 Runtime::FunctionId fallback_runtime_function_id = Runtime::kHasProperty); |
1067 Node* ForInFilter(Node* key, Node* object, Node* context); | 1069 Node* ForInFilter(Node* key, Node* object, Node* context); |
1068 | 1070 |
1069 Node* Typeof(Node* value, Node* context); | 1071 Node* Typeof(Node* value, Node* context); |
1070 | 1072 |
| 1073 Node* GetSuperConstructor(Node* value, Node* context); |
| 1074 |
1071 Node* InstanceOf(Node* object, Node* callable, Node* context); | 1075 Node* InstanceOf(Node* object, Node* callable, Node* context); |
1072 | 1076 |
1073 // Debug helpers | 1077 // Debug helpers |
1074 Node* IsDebugActive(); | 1078 Node* IsDebugActive(); |
1075 | 1079 |
1076 // TypedArray/ArrayBuffer helpers | 1080 // TypedArray/ArrayBuffer helpers |
1077 Node* IsDetachedBuffer(Node* buffer); | 1081 Node* IsDetachedBuffer(Node* buffer); |
1078 | 1082 |
1079 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, | 1083 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, |
1080 ParameterMode mode, int base_size = 0); | 1084 ParameterMode mode, int base_size = 0); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1193 } | 1197 } |
1194 #else | 1198 #else |
1195 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1199 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1196 #endif | 1200 #endif |
1197 | 1201 |
1198 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1202 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1199 | 1203 |
1200 } // namespace internal | 1204 } // namespace internal |
1201 } // namespace v8 | 1205 } // namespace v8 |
1202 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1206 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |