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

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

Issue 2738413002: [regexp] Port RegExpExecStub to CSA (mostly) (Closed)
Patch Set: Fix arm64 cobbled code register Created 3 years, 9 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 InstanceType instance_type, 682 InstanceType instance_type,
683 char const* method_name); 683 char const* method_name);
684 684
685 // Type checks. 685 // Type checks.
686 // Check whether the map is for an object with special properties, such as a 686 // Check whether the map is for an object with special properties, such as a
687 // JSProxy or an object with interceptors. 687 // JSProxy or an object with interceptors.
688 Node* InstanceTypeEqual(Node* instance_type, int type); 688 Node* InstanceTypeEqual(Node* instance_type, int type);
689 Node* IsSpecialReceiverMap(Node* map); 689 Node* IsSpecialReceiverMap(Node* map);
690 Node* IsSpecialReceiverInstanceType(Node* instance_type); 690 Node* IsSpecialReceiverInstanceType(Node* instance_type);
691 Node* IsStringInstanceType(Node* instance_type); 691 Node* IsStringInstanceType(Node* instance_type);
692 Node* IsOneByteStringInstanceType(Node* instance_type);
693 Node* IsSequentialStringInstanceType(Node* instance_type);
692 Node* IsString(Node* object); 694 Node* IsString(Node* object);
693 Node* IsJSObject(Node* object); 695 Node* IsJSObject(Node* object);
694 Node* IsJSGlobalProxy(Node* object); 696 Node* IsJSGlobalProxy(Node* object);
695 Node* IsJSReceiverInstanceType(Node* instance_type); 697 Node* IsJSReceiverInstanceType(Node* instance_type);
696 Node* IsJSReceiver(Node* object); 698 Node* IsJSReceiver(Node* object);
697 Node* IsJSReceiverMap(Node* map); 699 Node* IsJSReceiverMap(Node* map);
698 Node* IsMap(Node* object); 700 Node* IsMap(Node* object);
699 Node* IsCallableMap(Node* map); 701 Node* IsCallableMap(Node* map);
700 Node* IsDeprecatedMap(Node* map); 702 Node* IsDeprecatedMap(Node* map);
701 Node* IsCallable(Node* object); 703 Node* IsCallable(Node* object);
(...skipping 24 matching lines...) Expand all
726 // Return the single character string with only {code}. 728 // Return the single character string with only {code}.
727 Node* StringFromCharCode(Node* code); 729 Node* StringFromCharCode(Node* code);
728 // Return a new string object which holds a substring containing the range 730 // Return a new string object which holds a substring containing the range
729 // [from,to[ of string. |from| and |to| are expected to be tagged. 731 // [from,to[ of string. |from| and |to| are expected to be tagged.
730 Node* SubString(Node* context, Node* string, Node* from, Node* to); 732 Node* SubString(Node* context, Node* string, Node* from, Node* to);
731 733
732 // Return a new string object produced by concatenating |first| with |second|. 734 // Return a new string object produced by concatenating |first| with |second|.
733 Node* StringAdd(Node* context, Node* first, Node* second, 735 Node* StringAdd(Node* context, Node* first, Node* second,
734 AllocationFlags flags = kNone); 736 AllocationFlags flags = kNone);
735 737
738 // Tries to unpack |string| into a pseudo-sequential string. For instance,
739 // In addition to the work done by TryDerefExternalString and
740 // MaybeDerefIndirectString, this method can also unpack sliced strings into
741 // a (string, offset) pair. The same GC restrictions on the returned string
742 // value apply as for TryDerefExternalString.
743 void TryUnpackString(Variable* var_string, Variable* var_offset,
744 Variable* var_instance_type, Label* if_bailout);
745
736 // Unpack the external string, returning a pointer that (offset-wise) looks 746 // Unpack the external string, returning a pointer that (offset-wise) looks
737 // like a sequential string. 747 // like a sequential string.
738 // Note that this pointer is not tagged and does not point to a real 748 // Note that this pointer is not tagged and does not point to a real
739 // sequential string instance, and may only be used to access the string 749 // sequential string instance, and may only be used to access the string
740 // data. The pointer is GC-safe as long as a reference to the container 750 // data. The pointer is GC-safe as long as a reference to the container
741 // ExternalString is live. 751 // ExternalString is live.
742 // |string| must be an external string. Bailout for short external strings. 752 // |string| must be an external string. Bailout for short external strings.
743 Node* TryDerefExternalString(Node* const string, Node* const instance_type, 753 Node* TryDerefExternalString(Node* const string, Node* const instance_type,
744 Label* if_bailout); 754 Label* if_bailout);
745 755
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 } 1422 }
1413 #else 1423 #else
1414 #define CSA_SLOW_ASSERT(csa, x) ((void)0) 1424 #define CSA_SLOW_ASSERT(csa, x) ((void)0)
1415 #endif 1425 #endif
1416 1426
1417 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1427 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1418 1428
1419 } // namespace internal 1429 } // namespace internal
1420 } // namespace v8 1430 } // namespace v8
1421 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1431 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698