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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 compiler::Node* SubString(compiler::Node* context, compiler::Node* string, | 514 compiler::Node* SubString(compiler::Node* context, compiler::Node* string, |
515 compiler::Node* from, compiler::Node* to); | 515 compiler::Node* from, compiler::Node* to); |
516 | 516 |
517 compiler::Node* StringFromCodePoint(compiler::Node* codepoint, | 517 compiler::Node* StringFromCodePoint(compiler::Node* codepoint, |
518 UnicodeEncoding encoding); | 518 UnicodeEncoding encoding); |
519 | 519 |
520 // Type conversion helpers. | 520 // Type conversion helpers. |
521 // Convert a String to a Number. | 521 // Convert a String to a Number. |
522 compiler::Node* StringToNumber(compiler::Node* context, | 522 compiler::Node* StringToNumber(compiler::Node* context, |
523 compiler::Node* input); | 523 compiler::Node* input); |
| 524 compiler::Node* NumberToString(compiler::Node* context, |
| 525 compiler::Node* input); |
524 // Convert an object to a name. | 526 // Convert an object to a name. |
525 compiler::Node* ToName(compiler::Node* context, compiler::Node* input); | 527 compiler::Node* ToName(compiler::Node* context, compiler::Node* input); |
526 // Convert a Non-Number object to a Number. | 528 // Convert a Non-Number object to a Number. |
527 compiler::Node* NonNumberToNumber(compiler::Node* context, | 529 compiler::Node* NonNumberToNumber(compiler::Node* context, |
528 compiler::Node* input); | 530 compiler::Node* input); |
529 // Convert any object to a Number. | 531 // Convert any object to a Number. |
530 compiler::Node* ToNumber(compiler::Node* context, compiler::Node* input); | 532 compiler::Node* ToNumber(compiler::Node* context, compiler::Node* input); |
531 | 533 |
532 enum ToIntegerTruncationMode { | 534 enum ToIntegerTruncationMode { |
533 kNoTruncation, | 535 kNoTruncation, |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 Label* bailout); | 956 Label* bailout); |
955 | 957 |
956 static const int kElementLoopUnrollThreshold = 8; | 958 static const int kElementLoopUnrollThreshold = 8; |
957 }; | 959 }; |
958 | 960 |
959 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 961 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
960 | 962 |
961 } // namespace internal | 963 } // namespace internal |
962 } // namespace v8 | 964 } // namespace v8 |
963 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 965 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |