Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 25f197b82e6c6385bbd0703d7605dbcd5319b534..1a275e9609a4a4e159633212cdd37fd46fc7e54f 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -363,9 +363,19 @@ Handle<Struct> Factory::NewStruct(InstanceType type) { |
} |
-Handle<AccessorInfo> Factory::NewAccessorInfo() { |
- Handle<AccessorInfo> info = |
- Handle<AccessorInfo>::cast(NewStruct(ACCESSOR_INFO_TYPE)); |
+Handle<DeclaredAccessorInfo> Factory::NewDeclaredAccessorInfo() { |
+ Handle<DeclaredAccessorInfo> info = |
+ Handle<DeclaredAccessorInfo>::cast( |
+ NewStruct(DECLARED_ACCESSOR_INFO_TYPE)); |
+ info->set_flag(0); // Must clear the flag, it was initialized as undefined. |
+ return info; |
+} |
+ |
+ |
+Handle<ExecutableAccessorInfo> Factory::NewExecutableAccessorInfo() { |
+ Handle<ExecutableAccessorInfo> info = |
+ Handle<ExecutableAccessorInfo>::cast( |
+ NewStruct(EXECUTABLE_ACCESSOR_INFO_TYPE)); |
info->set_flag(0); // Must clear the flag, it was initialized as undefined. |
return info; |
} |