5 #ifndef V8_STRING_CONSTANTS_H_ 6 #define V8_STRING_CONSTANTS_H_ 8 #include "src/handles.h" 9 #include "src/objects/string.h" 10 #include "src/zone/zone.h" 15 enum class StringConstantKind {
17 kNumberToStringConstant,
25 StringConstantKind kind()
const {
return kind_; }
28 size_t GetMaxStringConstantLength()
const;
33 void Memoize(
Handle<String> flattened)
const { flattened_ = flattened; }
35 StringConstantKind kind_;
50 size_t GetMaxStringConstantLength()
const;
62 std::ostream& operator<<(std::ostream& os,
StringLiteral const& parameters);
70 double num()
const {
return num_; }
72 size_t GetMaxStringConstantLength()
const;
85 std::ostream& operator<<(std::ostream& os,
99 size_t GetMaxStringConstantLength()
const;
109 size_t hash_value(
StringCons const& parameters);
111 std::ostream& operator<<(std::ostream& os,
StringCons const& parameters);
116 #endif // V8_STRING_CONSTANTS_H_