| Index: src/compiler.cc
|
| ===================================================================
|
| --- src/compiler.cc (revision 3836)
|
| +++ src/compiler.cc (working copy)
|
| @@ -243,7 +243,8 @@
|
| 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);
|
| @@ -277,6 +278,9 @@
|
| 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,
|
|
|