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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 Node* IsCallableMap(Node* map); | 593 Node* IsCallableMap(Node* map); |
594 Node* IsName(Node* object); | 594 Node* IsName(Node* object); |
595 Node* IsJSValue(Node* object); | 595 Node* IsJSValue(Node* object); |
596 Node* IsJSArray(Node* object); | 596 Node* IsJSArray(Node* object); |
597 Node* IsNativeContext(Node* object); | 597 Node* IsNativeContext(Node* object); |
598 Node* IsWeakCell(Node* object); | 598 Node* IsWeakCell(Node* object); |
599 Node* IsFixedDoubleArray(Node* object); | 599 Node* IsFixedDoubleArray(Node* object); |
600 Node* IsHashTable(Node* object); | 600 Node* IsHashTable(Node* object); |
601 Node* IsDictionary(Node* object); | 601 Node* IsDictionary(Node* object); |
602 Node* IsUnseededNumberDictionary(Node* object); | 602 Node* IsUnseededNumberDictionary(Node* object); |
| 603 Node* IsConstructorMap(Node* map); |
603 | 604 |
604 // ElementsKind helpers: | 605 // ElementsKind helpers: |
605 Node* IsFastElementsKind(Node* elements_kind); | 606 Node* IsFastElementsKind(Node* elements_kind); |
606 Node* IsHoleyFastElementsKind(Node* elements_kind); | 607 Node* IsHoleyFastElementsKind(Node* elements_kind); |
607 | 608 |
608 // String helpers. | 609 // String helpers. |
609 // Load a character from a String (might flatten a ConsString). | 610 // Load a character from a String (might flatten a ConsString). |
610 Node* StringCharCodeAt(Node* string, Node* smi_index); | 611 Node* StringCharCodeAt(Node* string, Node* smi_index); |
611 // Return the single character string with only {code}. | 612 // Return the single character string with only {code}. |
612 Node* StringFromCharCode(Node* code); | 613 Node* StringFromCharCode(Node* code); |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 // instructions, e.g. Branch(SameValue(...), &label). | 1008 // instructions, e.g. Branch(SameValue(...), &label). |
1008 Node* SameValue(Node* lhs, Node* rhs, Node* context); | 1009 Node* SameValue(Node* lhs, Node* rhs, Node* context); |
1009 | 1010 |
1010 Node* HasProperty( | 1011 Node* HasProperty( |
1011 Node* object, Node* key, Node* context, | 1012 Node* object, Node* key, Node* context, |
1012 Runtime::FunctionId fallback_runtime_function_id = Runtime::kHasProperty); | 1013 Runtime::FunctionId fallback_runtime_function_id = Runtime::kHasProperty); |
1013 Node* ForInFilter(Node* key, Node* object, Node* context); | 1014 Node* ForInFilter(Node* key, Node* object, Node* context); |
1014 | 1015 |
1015 Node* Typeof(Node* value, Node* context); | 1016 Node* Typeof(Node* value, Node* context); |
1016 | 1017 |
| 1018 Node* GetSuperConstructor(Node* value, Node* context); |
| 1019 |
1017 Node* InstanceOf(Node* object, Node* callable, Node* context); | 1020 Node* InstanceOf(Node* object, Node* callable, Node* context); |
1018 | 1021 |
1019 // Debug helpers | 1022 // Debug helpers |
1020 Node* IsDebugActive(); | 1023 Node* IsDebugActive(); |
1021 | 1024 |
1022 // TypedArray/ArrayBuffer helpers | 1025 // TypedArray/ArrayBuffer helpers |
1023 Node* IsDetachedBuffer(Node* buffer); | 1026 Node* IsDetachedBuffer(Node* buffer); |
1024 | 1027 |
1025 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, | 1028 Node* ElementOffsetFromIndex(Node* index, ElementsKind kind, |
1026 ParameterMode mode, int base_size = 0); | 1029 ParameterMode mode, int base_size = 0); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1129 } | 1132 } |
1130 #else | 1133 #else |
1131 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1134 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1132 #endif | 1135 #endif |
1133 | 1136 |
1134 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1137 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1135 | 1138 |
1136 } // namespace internal | 1139 } // namespace internal |
1137 } // namespace v8 | 1140 } // namespace v8 |
1138 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1141 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |