Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index f6cf18915b0932395e43d76188f98426acf37f8c..4781143d7d9b82f50064da3a310ce089131d88fe 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -56,23 +56,23 @@ AST_NODE_LIST(DECL_ACCEPT) |
// Implementation of other node functionality. |
-bool Expression::IsSmiLiteral() { |
+bool Expression::IsSmiLiteral() const { |
return AsLiteral() != NULL && AsLiteral()->value()->IsSmi(); |
} |
-bool Expression::IsStringLiteral() { |
+bool Expression::IsStringLiteral() const { |
return AsLiteral() != NULL && AsLiteral()->value()->IsString(); |
} |
-bool Expression::IsNullLiteral() { |
+bool Expression::IsNullLiteral() const { |
return AsLiteral() != NULL && AsLiteral()->value()->IsNull(); |
} |
-bool Expression::IsUndefinedLiteral(Isolate* isolate) { |
- VariableProxy* var_proxy = AsVariableProxy(); |
+bool Expression::IsUndefinedLiteral(Isolate* isolate) const { |
+ const VariableProxy* var_proxy = AsVariableProxy(); |
if (var_proxy == NULL) return false; |
Variable* var = var_proxy->var(); |
// The global identifier "undefined" is immutable. Everything |
@@ -463,7 +463,7 @@ void BinaryOperation::RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle) { |
} |
-bool BinaryOperation::ResultOverwriteAllowed() { |
+bool BinaryOperation::ResultOverwriteAllowed() const { |
switch (op_) { |
case Token::COMMA: |
case Token::OR: |