| Index: src/compiler.cc
|
| ===================================================================
|
| --- src/compiler.cc (revision 4145)
|
| +++ src/compiler.cc (working copy)
|
| @@ -278,7 +278,8 @@
|
| int line_offset, int column_offset,
|
| v8::Extension* extension,
|
| ScriptDataImpl* input_pre_data,
|
| - Handle<Object> script_data) {
|
| + Handle<Object> script_data,
|
| + NativesFlag natives) {
|
| int source_length = source->length();
|
| Counters::total_load_size.Increment(source_length);
|
| Counters::total_compile_size.Increment(source_length);
|
| @@ -306,6 +307,9 @@
|
|
|
| // Create a script object describing the script to be compiled.
|
| Handle<Script> script = Factory::NewScript(source);
|
| + if (natives == NATIVES_CODE) {
|
| + script->set_type(Smi::FromInt(Script::TYPE_NATIVE));
|
| + }
|
| if (!script_name.is_null()) {
|
| script->set_name(*script_name);
|
| script->set_line_offset(Smi::FromInt(line_offset));
|
|
|