| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 29a48a0e57b8aa8f3aff514e5bcf3b2e46e1b1b0..62024310f1163015c8002411e28a91f959fada95 100755
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -237,7 +237,8 @@ Handle<JSFunction> Compiler::Compile(Handle<String> source,
|
| Handle<Object> script_name,
|
| int line_offset, int column_offset,
|
| v8::Extension* extension,
|
| - ScriptDataImpl* input_pre_data) {
|
| + ScriptDataImpl* input_pre_data,
|
| + Handle<Object> script_data) {
|
| int source_length = source->length();
|
| Counters::total_load_size.Increment(source_length);
|
| Counters::total_compile_size.Increment(source_length);
|
| @@ -271,6 +272,9 @@ Handle<JSFunction> Compiler::Compile(Handle<String> source,
|
| script->set_column_offset(Smi::FromInt(column_offset));
|
| }
|
|
|
| + script->set_data(script_data.is_null() ? Heap::undefined_value()
|
| + : *script_data);
|
| +
|
| // Compile the function and add it to the cache.
|
| result = MakeFunction(true,
|
| false,
|
|
|