| Index: src/execution.cc
|
| diff --git a/src/execution.cc b/src/execution.cc
|
| index 7aa4f3341d68a4bfd3c569f4537df3db8593f3a4..461685a1bbfba436ad9950a98d0cf23e5b32c43f 100644
|
| --- a/src/execution.cc
|
| +++ b/src/execution.cc
|
| @@ -34,6 +34,21 @@ void StackGuard::reset_limits(const ExecutionAccess& lock) {
|
| }
|
|
|
|
|
| +static PrintDeserializedCodeInfo(Handle<JSFunction> function) {
|
| + if (function->code() == function->shared()->code() &&
|
| + function->shared()->deserialized()) {
|
| + PrintF("Running deserialized script: ");
|
| + Object* script = function->shared()->script();
|
| + if (script->IsScript()) {
|
| + Script::cast(script)->name()->ShortPrint();
|
| + } else {
|
| + function->shared()->script()->ShortPrint();
|
| + }
|
| + PrintF("\n");
|
| + }
|
| +}
|
| +
|
| +
|
| MUST_USE_RESULT static MaybeHandle<Object> Invoke(
|
| bool is_construct,
|
| Handle<JSFunction> function,
|
| @@ -87,6 +102,7 @@ MUST_USE_RESULT static MaybeHandle<Object> Invoke(
|
| JSFunction* func = *function;
|
| Object* recv = *receiver;
|
| Object*** argv = reinterpret_cast<Object***>(args);
|
| + if (FLAG_profile_deserialization) PrintDeserializedCodeInfo(function);
|
| value =
|
| CALL_GENERATED_CODE(stub_entry, function_entry, func, recv, argc, argv);
|
| }
|
|
|