Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index a8bd0bf8e8667291e3a1da1a6c28402d86e7873c..34dfb2925ec47b9d99095d0ebf1e4dc3719b3edf 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -62,6 +62,19 @@ Handle<PrototypeInfo> Factory::NewPrototypeInfo() { |
} |
+Handle<SloppyBlockWithEvalContextExtension> |
+Factory::NewSloppyBlockWithEvalContextExtension( |
+ Handle<ScopeInfo> scope_info, Handle<JSObject> extension) { |
+ DCHECK(scope_info->is_declaration_scope()); |
+ Handle<SloppyBlockWithEvalContextExtension> result = |
+ Handle<SloppyBlockWithEvalContextExtension>::cast( |
+ NewStruct(SLOPPY_BLOCK_WITH_EVAL_CONTEXT_EXTENSION_TYPE)); |
+ result->set_scope_info(*scope_info); |
+ result->set_extension(*extension); |
+ return result; |
+} |
+ |
+ |
Handle<Oddball> Factory::NewOddball(Handle<Map> map, const char* to_string, |
Handle<Object> to_number, |
const char* type_of, byte kind) { |