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 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
732 Node* IsFixedDoubleArray(Node* object); | 732 Node* IsFixedDoubleArray(Node* object); |
733 Node* IsHashTable(Node* object); | 733 Node* IsHashTable(Node* object); |
734 Node* IsDictionary(Node* object); | 734 Node* IsDictionary(Node* object); |
735 Node* IsUnseededNumberDictionary(Node* object); | 735 Node* IsUnseededNumberDictionary(Node* object); |
736 Node* IsConstructorMap(Node* map); | 736 Node* IsConstructorMap(Node* map); |
737 Node* IsJSFunction(Node* object); | 737 Node* IsJSFunction(Node* object); |
738 Node* IsJSTypedArray(Node* object); | 738 Node* IsJSTypedArray(Node* object); |
739 Node* IsFixedTypedArray(Node* object); | 739 Node* IsFixedTypedArray(Node* object); |
740 Node* IsJSRegExp(Node* object); | 740 Node* IsJSRegExp(Node* object); |
741 | 741 |
| 742 // True iff |object| is a Smi or a HeapNumber. |
| 743 Node* IsNumber(Node* object); |
| 744 |
| 745 // True iff |number| is either a Smi, or a HeapNumber whose value is not |
| 746 // within Smi range. |
| 747 Node* IsNumberNormalized(Node* number); |
| 748 |
742 // ElementsKind helpers: | 749 // ElementsKind helpers: |
743 Node* IsFastElementsKind(Node* elements_kind); | 750 Node* IsFastElementsKind(Node* elements_kind); |
744 Node* IsHoleyFastElementsKind(Node* elements_kind); | 751 Node* IsHoleyFastElementsKind(Node* elements_kind); |
745 | 752 |
746 // String helpers. | 753 // String helpers. |
747 // Load a character from a String (might flatten a ConsString). | 754 // Load a character from a String (might flatten a ConsString). |
748 Node* StringCharCodeAt(Node* string, Node* index, | 755 Node* StringCharCodeAt(Node* string, Node* index, |
749 ParameterMode parameter_mode = SMI_PARAMETERS); | 756 ParameterMode parameter_mode = SMI_PARAMETERS); |
750 // Return the single character string with only {code}. | 757 // Return the single character string with only {code}. |
751 Node* StringFromCharCode(Node* code); | 758 Node* StringFromCharCode(Node* code); |
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 } | 1503 } |
1497 #else | 1504 #else |
1498 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1505 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1499 #endif | 1506 #endif |
1500 | 1507 |
1501 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1508 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1502 | 1509 |
1503 } // namespace internal | 1510 } // namespace internal |
1504 } // namespace v8 | 1511 } // namespace v8 |
1505 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1512 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |