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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 // Convert a String to a Number. | 588 // Convert a String to a Number. |
589 Node* StringToNumber(Node* context, Node* input); | 589 Node* StringToNumber(Node* context, Node* input); |
590 Node* NumberToString(Node* context, Node* input); | 590 Node* NumberToString(Node* context, Node* input); |
591 // Convert an object to a name. | 591 // Convert an object to a name. |
592 Node* ToName(Node* context, Node* input); | 592 Node* ToName(Node* context, Node* input); |
593 // Convert a Non-Number object to a Number. | 593 // Convert a Non-Number object to a Number. |
594 Node* NonNumberToNumber(Node* context, Node* input); | 594 Node* NonNumberToNumber(Node* context, Node* input); |
595 // Convert any object to a Number. | 595 // Convert any object to a Number. |
596 Node* ToNumber(Node* context, Node* input); | 596 Node* ToNumber(Node* context, Node* input); |
597 | 597 |
| 598 // Converts |input| to one of 2^32 integer values in the range 0 through |
| 599 // 2^32−1, inclusive. |
| 600 // ES#sec-touint32 |
| 601 compiler::Node* ToUint32(compiler::Node* context, compiler::Node* input); |
| 602 |
598 // Convert any object to a String. | 603 // Convert any object to a String. |
599 Node* ToString(Node* context, Node* input); | 604 Node* ToString(Node* context, Node* input); |
600 | 605 |
601 // Convert any object to a Primitive. | 606 // Convert any object to a Primitive. |
602 Node* JSReceiverToPrimitive(Node* context, Node* input); | 607 Node* JSReceiverToPrimitive(Node* context, Node* input); |
603 | 608 |
604 // Convert a String to a flat String. | 609 // Convert a String to a flat String. |
605 Node* FlattenString(Node* string); | 610 Node* FlattenString(Node* string); |
606 | 611 |
607 enum ToIntegerTruncationMode { | 612 enum ToIntegerTruncationMode { |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 } | 1073 } |
1069 #else | 1074 #else |
1070 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1075 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1071 #endif | 1076 #endif |
1072 | 1077 |
1073 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1078 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1074 | 1079 |
1075 } // namespace internal | 1080 } // namespace internal |
1076 } // namespace v8 | 1081 } // namespace v8 |
1077 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1082 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |