Changeset 167313 in webkit for trunk/Source/JavaScriptCore/parser/Nodes.h
- Timestamp:
- Apr 15, 2014, 10:46:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/Nodes.h
r167199 r167313 165 165 virtual bool isBoolean() const { return false; } 166 166 virtual bool isSpreadExpression() const { return false; } 167 virtual bool getBooleanConstant(bool&) const { return false; }168 167 169 168 virtual void emitBytecodeInConditionContext(BytecodeGenerator&, Label*, Label*, FallThroughMode); … … 215 214 216 215 private: 217 218 bool getBooleanConstant(bool& value) const override219 {220 value = false;221 return true;222 }223 224 216 virtual bool isNull() const override { return true; } 225 217 virtual JSValue jsValue(BytecodeGenerator&) const override { return jsNull(); } … … 230 222 BooleanNode(const JSTokenLocation&, bool value); 231 223 bool value() { return m_value; } 232 233 private: 234 bool getBooleanConstant(bool& value) const override 235 { 236 value = m_value; 237 return true; 238 } 239 224 225 private: 240 226 virtual bool isBoolean() const override { return true; } 241 227 virtual JSValue jsValue(BytecodeGenerator&) const override { return jsBoolean(m_value); } … … 251 237 252 238 private: 253 bool getBooleanConstant(bool& value) const override254 {255 value = (bool)m_value;256 return true;257 }258 239 virtual bool isNumber() const override { return true; } 259 240 virtual JSValue jsValue(BytecodeGenerator&) const override { return jsNumber(m_value); }
Note:
See TracChangeset
for help on using the changeset viewer.