X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fv8%2Fsrc%2Fast.cc;h=4781143d7d9b82f50064da3a310ce089131d88fe;hb=8be7648e3bc188a587d5050c5a945c1099957e8b;hp=f6cf18915b0932395e43d76188f98426acf37f8c;hpb=3cb1527a1d0111fd75188ac2c34c117944473076;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/v8/src/ast.cc b/src/v8/src/ast.cc index f6cf189..4781143 100644 --- a/src/v8/src/ast.cc +++ b/src/v8/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: