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

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

Issue 2327703003: [builtins] Migrate ToNumber to TurboFan. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « src/builtins/x87/builtins-x87.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 compiler::Node* smi_index); 424 compiler::Node* smi_index);
425 // Return the single character string with only {code}. 425 // Return the single character string with only {code}.
426 compiler::Node* StringFromCharCode(compiler::Node* code); 426 compiler::Node* StringFromCharCode(compiler::Node* code);
427 427
428 // Type conversion helpers. 428 // Type conversion helpers.
429 // Convert a String to a Number. 429 // Convert a String to a Number.
430 compiler::Node* StringToNumber(compiler::Node* context, 430 compiler::Node* StringToNumber(compiler::Node* context,
431 compiler::Node* input); 431 compiler::Node* input);
432 // Convert an object to a name. 432 // Convert an object to a name.
433 compiler::Node* ToName(compiler::Node* context, compiler::Node* input); 433 compiler::Node* ToName(compiler::Node* context, compiler::Node* input);
434 // Convert a Non-Number object to a Number.
435 compiler::Node* NonNumberToNumber(compiler::Node* context,
436 compiler::Node* input);
437 // Convert any object to a Number.
438 compiler::Node* ToNumber(compiler::Node* context, compiler::Node* input);
434 439
435 // Returns a node that contains a decoded (unsigned!) value of a bit 440 // Returns a node that contains a decoded (unsigned!) value of a bit
436 // field |T| in |word32|. Returns result as an uint32 node. 441 // field |T| in |word32|. Returns result as an uint32 node.
437 template <typename T> 442 template <typename T>
438 compiler::Node* BitFieldDecode(compiler::Node* word32) { 443 compiler::Node* BitFieldDecode(compiler::Node* word32) {
439 return BitFieldDecode(word32, T::kShift, T::kMask); 444 return BitFieldDecode(word32, T::kShift, T::kMask);
440 } 445 }
441 446
442 // Returns a node that contains a decoded (unsigned!) value of a bit 447 // Returns a node that contains a decoded (unsigned!) value of a bit
443 // field |T| in |word32|. Returns result as a word-size node. 448 // field |T| in |word32|. Returns result as a word-size node.
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 compiler::Node* SmiShiftBitsConstant(); 700 compiler::Node* SmiShiftBitsConstant();
696 701
697 static const int kElementLoopUnrollThreshold = 8; 702 static const int kElementLoopUnrollThreshold = 8;
698 }; 703 };
699 704
700 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 705 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
701 706
702 } // namespace internal 707 } // namespace internal
703 } // namespace v8 708 } // namespace v8
704 #endif // V8_CODE_STUB_ASSEMBLER_H_ 709 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/builtins/x87/builtins-x87.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698