Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 934ab25abbfa0e6dec5a935d27176223e174c88a..39e32806b7b90ec2909dcd891e4af7022df29cef 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -664,6 +664,14 @@ Handle<Symbol> Factory::NewPrivateSymbol() { |
} |
+Handle<Symbol> Factory::NewPrivateOwnSymbol() { |
+ Handle<Symbol> symbol = NewSymbol(); |
+ symbol->set_is_private(true); |
+ symbol->set_is_own(true); |
+ return symbol; |
+} |
+ |
+ |
Handle<Context> Factory::NewNativeContext() { |
Handle<FixedArray> array = NewFixedArray(Context::NATIVE_CONTEXT_SLOTS); |
array->set_map_no_write_barrier(*native_context_map()); |