Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(423)

Side by Side Diff: src/code-stub-assembler.h

Issue 2327703003: [builtins] Migrate ToNumber to TurboFan. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 // Load a character from a String (might flatten a ConsString). 405 // Load a character from a String (might flatten a ConsString).
406 compiler::Node* StringCharCodeAt(compiler::Node* string, 406 compiler::Node* StringCharCodeAt(compiler::Node* string,
407 compiler::Node* smi_index); 407 compiler::Node* smi_index);
408 // Return the single character string with only {code}. 408 // Return the single character string with only {code}.
409 compiler::Node* StringFromCharCode(compiler::Node* code); 409 compiler::Node* StringFromCharCode(compiler::Node* code);
410 410
411 // Type conversion helpers. 411 // Type conversion helpers.
412 // Convert a String to a Number. 412 // Convert a String to a Number.
413 compiler::Node* StringToNumber(compiler::Node* context, 413 compiler::Node* StringToNumber(compiler::Node* context,
414 compiler::Node* input); 414 compiler::Node* input);
415 // Convert a Non-Number object to a Number.
416 compiler::Node* NonNumberToNumber(compiler::Node* context,
417 compiler::Node* input);
418 // Convert any object to a Number.
419 compiler::Node* ToNumber(compiler::Node* context, compiler::Node* input);
415 420
416 // Returns a node that contains a decoded (unsigned!) value of a bit 421 // Returns a node that contains a decoded (unsigned!) value of a bit
417 // field |T| in |word32|. Returns result as an uint32 node. 422 // field |T| in |word32|. Returns result as an uint32 node.
418 template <typename T> 423 template <typename T>
419 compiler::Node* BitFieldDecode(compiler::Node* word32) { 424 compiler::Node* BitFieldDecode(compiler::Node* word32) {
420 return BitFieldDecode(word32, T::kShift, T::kMask); 425 return BitFieldDecode(word32, T::kShift, T::kMask);
421 } 426 }
422 427
423 // Returns a node that contains a decoded (unsigned!) value of a bit 428 // Returns a node that contains a decoded (unsigned!) value of a bit
424 // field |T| in |word32|. Returns result as a word-size node. 429 // field |T| in |word32|. Returns result as a word-size node.
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 compiler::Node* SmiShiftBitsConstant(); 681 compiler::Node* SmiShiftBitsConstant();
677 682
678 static const int kElementLoopUnrollThreshold = 8; 683 static const int kElementLoopUnrollThreshold = 8;
679 }; 684 };
680 685
681 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 686 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
682 687
683 } // namespace internal 688 } // namespace internal
684 } // namespace v8 689 } // namespace v8
685 #endif // V8_CODE_STUB_ASSEMBLER_H_ 690 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698