Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index acef06c9c3de568bf7c78e217e458d6f323956f9..5e306dda57dc5b694281d2240174e522744f4958 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -816,10 +816,9 @@ void FullCodeGenerator::VisitVariableDeclaration( |
__ push(rsi); |
__ Push(variable->name()); |
// Declaration nodes are always introduced in one of four modes. |
- ASSERT(mode == VAR || mode == LET || |
- mode == CONST || mode == CONST_HARMONY); |
+ ASSERT(IsDeclaredVariableMode(mode)); |
PropertyAttributes attr = |
- (mode == CONST || mode == CONST_HARMONY) ? READ_ONLY : NONE; |
+ IsImmutableVariableMode(mode) ? READ_ONLY : NONE; |
__ Push(Smi::FromInt(attr)); |
// Push initial value, if any. |
// Note: For variables we must not push an initial value (such as |