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

Unified Diff: src/arm/lithium-arm.h

Issue 6368009: ARM: Implement StringLength and StringCharCodeAt in the lithium-arm (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/lithium-arm.h
diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h
index a14150814375ee0c9625f09bab54a18bdf9ac84a..48febdf7a265c4b25d207f6db33606a37304a3f5 100644
--- a/src/arm/lithium-arm.h
+++ b/src/arm/lithium-arm.h
@@ -67,6 +67,7 @@ class LCodeGen;
// LModI
// LMulI
// LShiftI
+// LStringCharCodeAt
// LSubI
// LCallConstantFunction
// LCallFunction
@@ -136,6 +137,7 @@ class LCodeGen;
// LReturn
// LSmiTag
// LStoreGlobal
+// LStringLength
// LTaggedToI
// LThrow
// LTypeof
@@ -251,6 +253,8 @@ class LCodeGen;
V(StoreNamedField) \
V(StoreNamedGeneric) \
V(SubI) \
+ V(StringCharCodeAt) \
+ V(StringLength) \
V(TaggedToI) \
V(Throw) \
V(Typeof) \
@@ -1580,6 +1584,28 @@ class LStoreKeyedGeneric: public LStoreKeyed {
};
+class LStringCharCodeAt: public LBinaryOperation {
+ public:
+ LStringCharCodeAt(LOperand* string, LOperand* index)
+ : LBinaryOperation(string, index) {}
+
+ DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at")
+ DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt)
+
+ LOperand* string() { return left(); }
+ LOperand* index() { return right(); }
+};
+
+
+class LStringLength: public LUnaryOperation {
+ public:
+ explicit LStringLength(LOperand* string) : LUnaryOperation(string) {}
+
+ DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length")
+ DECLARE_HYDROGEN_ACCESSOR(StringLength)
+};
+
+
class LCheckFunction: public LUnaryOperation {
public:
explicit LCheckFunction(LOperand* use) : LUnaryOperation(use) { }
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698