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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 // Convert any object to a Number. | 637 // Convert any object to a Number. |
638 compiler::Node* ToNumber(compiler::Node* context, compiler::Node* input); | 638 compiler::Node* ToNumber(compiler::Node* context, compiler::Node* input); |
639 | 639 |
640 // Convert any object to a String. | 640 // Convert any object to a String. |
641 compiler::Node* ToString(compiler::Node* context, compiler::Node* input); | 641 compiler::Node* ToString(compiler::Node* context, compiler::Node* input); |
642 | 642 |
643 // Convert any object to a Primitive. | 643 // Convert any object to a Primitive. |
644 compiler::Node* JSReceiverToPrimitive(compiler::Node* context, | 644 compiler::Node* JSReceiverToPrimitive(compiler::Node* context, |
645 compiler::Node* input); | 645 compiler::Node* input); |
646 | 646 |
| 647 // Convert a String to a flat String. |
| 648 compiler::Node* FlattenString(compiler::Node* string); |
| 649 |
647 enum ToIntegerTruncationMode { | 650 enum ToIntegerTruncationMode { |
648 kNoTruncation, | 651 kNoTruncation, |
649 kTruncateMinusZero, | 652 kTruncateMinusZero, |
650 }; | 653 }; |
651 | 654 |
652 // Convert any object to an Integer. | 655 // Convert any object to an Integer. |
653 compiler::Node* ToInteger(compiler::Node* context, compiler::Node* input, | 656 compiler::Node* ToInteger(compiler::Node* context, compiler::Node* input, |
654 ToIntegerTruncationMode mode = kNoTruncation); | 657 ToIntegerTruncationMode mode = kNoTruncation); |
655 | 658 |
656 // Returns a node that contains a decoded (unsigned!) value of a bit | 659 // Returns a node that contains a decoded (unsigned!) value of a bit |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 static const int kElementLoopUnrollThreshold = 8; | 1098 static const int kElementLoopUnrollThreshold = 8; |
1096 }; | 1099 }; |
1097 | 1100 |
1098 #define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__) | 1101 #define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__) |
1099 | 1102 |
1100 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1103 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1101 | 1104 |
1102 } // namespace internal | 1105 } // namespace internal |
1103 } // namespace v8 | 1106 } // namespace v8 |
1104 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1107 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |