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