Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 0ed37017b14dcd62e68e8d466f6f2b6282d4d93b..3a756585e574ead45594e3c18e662ce1b8441694 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -1001,6 +1001,18 @@ class KeyedStoreExternalArrayStub : public CodeStub { |
}; |
+class ToBooleanStub: public CodeStub { |
+ public: |
+ explicit ToBooleanStub(Register tos) : tos_(tos) { } |
+ |
+ void Generate(MacroAssembler* masm); |
+ |
+ private: |
+ Register tos_; |
+ Major MajorKey() { return ToBoolean; } |
+ int MinorKey() { return tos_.code(); } |
+}; |
+ |
} } // namespace v8::internal |
#endif // V8_CODE_STUBS_H_ |