| Index: src/parser.cc
|
| ===================================================================
|
| --- src/parser.cc (revision 5059)
|
| +++ src/parser.cc (working copy)
|
| @@ -36,6 +36,7 @@
|
| #include "parser.h"
|
| #include "platform.h"
|
| #include "runtime.h"
|
| +#include "scopeinfo.h"
|
| #include "scopes.h"
|
| #include "string-stream.h"
|
|
|
| @@ -1968,8 +1969,9 @@
|
| const int literals = fun->NumberOfLiterals();
|
| Handle<Code> code = Handle<Code>(fun->shared()->code());
|
| Handle<Code> construct_stub = Handle<Code>(fun->shared()->construct_stub());
|
| - Handle<SharedFunctionInfo> shared = Factory::NewSharedFunctionInfo(
|
| - name, literals, code, Handle<Object>(fun->shared()->scope_info()));
|
| + Handle<SharedFunctionInfo> shared =
|
| + Factory::NewSharedFunctionInfo(name, literals, code,
|
| + Handle<SerializedScopeInfo>(fun->shared()->scope_info()));
|
| shared->set_construct_stub(*construct_stub);
|
|
|
| // Copy the function data to the shared function info.
|
|
|