Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index b37c9ede6ce020342de8fcbeb2734c4232c5bdb9..ba4d1b534154844743571c59267ceb50b5d8a8ef 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -1786,11 +1786,13 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
break; |
case ObjectLiteral::Property::GETTER: |
- __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 3); |
+ __ Push(Smi::FromInt(NONE)); |
+ __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4); |
break; |
case ObjectLiteral::Property::SETTER: |
- __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 3); |
+ __ Push(Smi::FromInt(NONE)); |
+ __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); |
break; |
} |
} |
@@ -2476,11 +2478,13 @@ void FullCodeGenerator::EmitClassDefineProperties(ClassLiteral* lit) { |
break; |
case ObjectLiteral::Property::GETTER: |
- __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 3); |
+ __ Push(Smi::FromInt(DONT_ENUM)); |
+ __ CallRuntime(Runtime::kDefineGetterPropertyUnchecked, 4); |
break; |
case ObjectLiteral::Property::SETTER: |
- __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 3); |
+ __ Push(Smi::FromInt(DONT_ENUM)); |
+ __ CallRuntime(Runtime::kDefineSetterPropertyUnchecked, 4); |
break; |
default: |