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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 Node* IsUnseededNumberDictionary(Node* object); | 662 Node* IsUnseededNumberDictionary(Node* object); |
663 Node* IsConstructorMap(Node* map); | 663 Node* IsConstructorMap(Node* map); |
664 Node* IsJSFunction(Node* object); | 664 Node* IsJSFunction(Node* object); |
665 | 665 |
666 // ElementsKind helpers: | 666 // ElementsKind helpers: |
667 Node* IsFastElementsKind(Node* elements_kind); | 667 Node* IsFastElementsKind(Node* elements_kind); |
668 Node* IsHoleyFastElementsKind(Node* elements_kind); | 668 Node* IsHoleyFastElementsKind(Node* elements_kind); |
669 | 669 |
670 // String helpers. | 670 // String helpers. |
671 // Load a character from a String (might flatten a ConsString). | 671 // Load a character from a String (might flatten a ConsString). |
672 Node* StringCharCodeAt(Node* string, Node* smi_index); | 672 Node* StringCharCodeAt(Node* string, Node* index, |
| 673 ParameterMode parameter_mode = SMI_PARAMETERS); |
673 // Return the single character string with only {code}. | 674 // Return the single character string with only {code}. |
674 Node* StringFromCharCode(Node* code); | 675 Node* StringFromCharCode(Node* code); |
675 // Return a new string object which holds a substring containing the range | 676 // Return a new string object which holds a substring containing the range |
676 // [from,to[ of string. |from| and |to| are expected to be tagged. | 677 // [from,to[ of string. |from| and |to| are expected to be tagged. |
677 Node* SubString(Node* context, Node* string, Node* from, Node* to); | 678 Node* SubString(Node* context, Node* string, Node* from, Node* to); |
678 | 679 |
679 // Return a new string object produced by concatenating |first| with |second|. | 680 // Return a new string object produced by concatenating |first| with |second|. |
680 Node* StringAdd(Node* context, Node* first, Node* second, | 681 Node* StringAdd(Node* context, Node* first, Node* second, |
681 AllocationFlags flags = kNone); | 682 AllocationFlags flags = kNone); |
682 | 683 |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 } | 1216 } |
1216 #else | 1217 #else |
1217 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1218 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1218 #endif | 1219 #endif |
1219 | 1220 |
1220 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1221 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1221 | 1222 |
1222 } // namespace internal | 1223 } // namespace internal |
1223 } // namespace v8 | 1224 } // namespace v8 |
1224 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1225 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |