| Index: src/builtins.cc
|
| diff --git a/src/builtins.cc b/src/builtins.cc
|
| index 577ab0a116109023e660a88c3b6907fd40cb673d..d054916db0a700e330ea3aac6abf859d0ec4226a 100644
|
| --- a/src/builtins.cc
|
| +++ b/src/builtins.cc
|
| @@ -2068,20 +2068,11 @@
|
| }
|
|
|
| // Compile source string in the native context.
|
| - StackTraceFrameIterator it(isolate);
|
| - int pos = RelocInfo::kNoPosition;
|
| - Handle<SharedFunctionInfo> outer_info;
|
| - if (!it.done() && it.is_javascript()) {
|
| - FrameSummary summary = FrameSummary::GetFirst(it.javascript_frame());
|
| - pos = summary.abstract_code()->SourcePosition(summary.code_offset());
|
| - outer_info = Handle<SharedFunctionInfo>(summary.function()->shared());
|
| - } else {
|
| - outer_info =
|
| - Handle<SharedFunctionInfo>(native_context->closure()->shared());
|
| - }
|
| -
|
| + Handle<SharedFunctionInfo> outer_info(native_context->closure()->shared(),
|
| + isolate);
|
| return Compiler::GetFunctionFromEval(source, outer_info, native_context,
|
| - SLOPPY, restriction, pos);
|
| + SLOPPY, restriction,
|
| + RelocInfo::kNoPosition);
|
| }
|
|
|
| } // namespace
|
|
|