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

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

Issue 2358263002: [builtins] migrate C++ String Iterator builtins to baseline TurboFan (Closed)
Patch Set: v3 (try again, but probably not ._.) 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 PrimitiveType primitive_type, 437 PrimitiveType primitive_type,
438 char const* method_name); 438 char const* method_name);
439 439
440 // String helpers. 440 // String helpers.
441 // Load a character from a String (might flatten a ConsString). 441 // Load a character from a String (might flatten a ConsString).
442 compiler::Node* StringCharCodeAt(compiler::Node* string, 442 compiler::Node* StringCharCodeAt(compiler::Node* string,
443 compiler::Node* smi_index); 443 compiler::Node* smi_index);
444 // Return the single character string with only {code}. 444 // Return the single character string with only {code}.
445 compiler::Node* StringFromCharCode(compiler::Node* code); 445 compiler::Node* StringFromCharCode(compiler::Node* code);
446 446
447 // Return a String made up of the codepoint at index.
448 compiler::Node* StringFromCodePointAt(compiler::Node* string,
449 compiler::Node* length,
450 compiler::Node* index);
451
447 // Type conversion helpers. 452 // Type conversion helpers.
448 // Convert a String to a Number. 453 // Convert a String to a Number.
449 compiler::Node* StringToNumber(compiler::Node* context, 454 compiler::Node* StringToNumber(compiler::Node* context,
450 compiler::Node* input); 455 compiler::Node* input);
451 // Convert an object to a name. 456 // Convert an object to a name.
452 compiler::Node* ToName(compiler::Node* context, compiler::Node* input); 457 compiler::Node* ToName(compiler::Node* context, compiler::Node* input);
453 // Convert a Non-Number object to a Number. 458 // Convert a Non-Number object to a Number.
454 compiler::Node* NonNumberToNumber(compiler::Node* context, 459 compiler::Node* NonNumberToNumber(compiler::Node* context,
455 compiler::Node* input); 460 compiler::Node* input);
456 // Convert any object to a Number. 461 // Convert any object to a Number.
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 Label* bailout); 802 Label* bailout);
798 803
799 static const int kElementLoopUnrollThreshold = 8; 804 static const int kElementLoopUnrollThreshold = 8;
800 }; 805 };
801 806
802 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 807 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
803 808
804 } // namespace internal 809 } // namespace internal
805 } // namespace v8 810 } // namespace v8
806 #endif // V8_CODE_STUB_ASSEMBLER_H_ 811 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698