Index: src/compiler.cc |
=================================================================== |
--- src/compiler.cc (revision 369) |
+++ src/compiler.cc (working copy) |
@@ -202,8 +202,9 @@ |
} |
-Handle<JSFunction> Compiler::CompileEval(bool is_global, |
- Handle<String> source) { |
+Handle<JSFunction> Compiler::CompileEval(Handle<String> source, |
+ int line_offset, |
+ bool is_global) { |
Counters::total_eval_size.Increment(source->length()); |
Counters::total_compile_size.Increment(source->length()); |
@@ -219,6 +220,7 @@ |
if (result.is_null()) { |
// Create a script object describing the script to be compiled. |
Handle<Script> script = Factory::NewScript(source); |
+ script->set_line_offset(Smi::FromInt(line_offset)); |
result = MakeFunction(is_global, true, script, NULL, NULL); |
if (!result.is_null()) { |
CompilationCache::Associate(source, entry, result); |