| Index: src/runtime/runtime-internal.cc
|
| diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc
|
| index d701561c2f9d7ac2463be00bfab1e016f9a87e5d..460ea9c52114f8c1d634a2ea6025788f6922ff1b 100644
|
| --- a/src/runtime/runtime-internal.cc
|
| +++ b/src/runtime/runtime-internal.cc
|
| @@ -179,18 +179,13 @@ RUNTIME_FUNCTION(Runtime_RenderCallSite) {
|
| if (location.start_pos() == -1) return isolate->heap()->empty_string();
|
|
|
| Zone zone;
|
| + ParseInfo info(&zone);
|
| if (location.function()->shared()->is_function()) {
|
| - CompilationInfo info(location.function(), &zone);
|
| - if (!Parser::ParseStatic(&info)) {
|
| - isolate->clear_pending_exception();
|
| - return isolate->heap()->empty_string();
|
| - }
|
| - CallPrinter printer(isolate, &zone);
|
| - const char* string = printer.Print(info.function(), location.start_pos());
|
| - return *isolate->factory()->NewStringFromAsciiChecked(string);
|
| + info.InitializeFromJSFunction(location.function());
|
| + } else {
|
| + info.InitializeFromScript(location.script());
|
| }
|
|
|
| - CompilationInfo info(location.script(), &zone);
|
| if (!Parser::ParseStatic(&info)) {
|
| isolate->clear_pending_exception();
|
| return isolate->heap()->empty_string();
|
|
|