Index: src/x64/codegen-x64.h |
diff --git a/src/x64/codegen-x64.h b/src/x64/codegen-x64.h |
index fa90f0248f62844c80a96d99c90fc8ece8474548..52a00177ad4ce43baf37a3df9bb8ecc491b0aa6c 100644 |
--- a/src/x64/codegen-x64.h |
+++ b/src/x64/codegen-x64.h |
@@ -780,6 +780,28 @@ class StringAddStub: public CodeStub { |
}; |
+class StringCompareStub: public CodeStub { |
+ public: |
+ explicit StringCompareStub() {} |
+ |
+ // Compare two flat ascii strings and returns result in rax after popping two |
+ // arguments from the stack. |
+ static void GenerateCompareFlatAsciiStrings(MacroAssembler* masm, |
+ Register left, |
+ Register right, |
+ Register scratch1, |
+ Register scratch2, |
+ Register scratch3, |
+ Register scratch4); |
+ |
+ private: |
+ Major MajorKey() { return StringCompare; } |
+ int MinorKey() { return 0; } |
+ |
+ void Generate(MacroAssembler* masm); |
+}; |
+ |
+ |
} } // namespace v8::internal |
#endif // V8_X64_CODEGEN_X64_H_ |