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

Unified Diff: src/interface-descriptors.h

Issue 2599683002: [turbofan] Introduce a dedicated StringCharAt operator. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interface-descriptors.h
diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h
index 485ed7930268f1341e5b9c10c8f28c6e92f1aa10..7a929269e1c611603dbe2a08480f273b2cc30176 100644
--- a/src/interface-descriptors.h
+++ b/src/interface-descriptors.h
@@ -73,6 +73,7 @@ class PlatformInterfaceDescriptor;
V(BinaryOpWithVector) \
V(CountOp) \
V(StringAdd) \
+ V(StringCharAt) \
V(StringCompare) \
V(SubString) \
V(Keyed) \
@@ -689,6 +690,12 @@ class StringAddDescriptor : public CallInterfaceDescriptor {
DECLARE_DESCRIPTOR(StringAddDescriptor, CallInterfaceDescriptor)
};
+class StringCharAtDescriptor final : public CallInterfaceDescriptor {
+ public:
+ DEFINE_PARAMETERS(kReceiver, kPosition)
+ DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(StringCharAtDescriptor,
+ CallInterfaceDescriptor)
+};
class StringCompareDescriptor : public CallInterfaceDescriptor {
public:
« no previous file with comments | « src/compiler/verifier.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698