Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(462)

Unified Diff: src/ast/ast.cc

Issue 2243783002: Call IsStringLiteral instead of IsPropertyName in VisitObjectLiteral. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index c1b424488a97f3a4b81804bdd6c88168fb4da508..835e2c850a1b74b1256df89c8f5fb00be431cbaa 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -66,12 +66,11 @@ MaterializedLiteral* AstNode::AsMaterializedLiteral() {
#undef RETURN_NODE
bool Expression::IsSmiLiteral() const {
- return IsLiteral() && AsLiteral()->value()->IsSmi();
+ return IsLiteral() && AsLiteral()->raw_value()->IsSmi();
}
-
bool Expression::IsStringLiteral() const {
- return IsLiteral() && AsLiteral()->value()->IsString();
+ return IsLiteral() && AsLiteral()->raw_value()->IsString();
}
bool Expression::IsPropertyName() const {
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698