| Index: src/factory.cc
|
| ===================================================================
|
| --- src/factory.cc (revision 8931)
|
| +++ src/factory.cc (working copy)
|
| @@ -34,6 +34,7 @@
|
| #include "macro-assembler.h"
|
| #include "objects.h"
|
| #include "objects-visiting.h"
|
| +#include "scopeinfo.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
| @@ -291,6 +292,19 @@
|
| }
|
|
|
|
|
| +Handle<Context> Factory::NewBlockContext(
|
| + Handle<JSFunction> function,
|
| + Handle<Context> previous,
|
| + Handle<SerializedScopeInfo> scope_info) {
|
| + CALL_HEAP_FUNCTION(
|
| + isolate(),
|
| + isolate()->heap()->AllocateBlockContext(*function,
|
| + *previous,
|
| + *scope_info),
|
| + Context);
|
| +}
|
| +
|
| +
|
| Handle<Struct> Factory::NewStruct(InstanceType type) {
|
| CALL_HEAP_FUNCTION(
|
| isolate(),
|
| @@ -734,6 +748,14 @@
|
| }
|
|
|
|
|
| +Handle<SerializedScopeInfo> Factory::NewSerializedScopeInfo(int length) {
|
| + CALL_HEAP_FUNCTION(
|
| + isolate(),
|
| + isolate()->heap()->AllocateSerializedScopeInfo(length),
|
| + SerializedScopeInfo);
|
| +}
|
| +
|
| +
|
| Handle<Code> Factory::NewCode(const CodeDesc& desc,
|
| Code::Flags flags,
|
| Handle<Object> self_ref,
|
|
|