| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 2be6c97493e2269078baacbc032671a736c3241f..e0e1ae0bd35e3f944fc6fe1e7162b5eac13d8b7a 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -528,7 +528,8 @@ RUNTIME_FUNCTION(Runtime_GetFrameDetails) {
|
| bool constructor = frame_inspector.IsConstructor();
|
|
|
| // Get scope info and read from it for local variable information.
|
| - Handle<JSFunction> function(JSFunction::cast(frame_inspector.GetFunction()));
|
| + Handle<JSFunction> function =
|
| + Handle<JSFunction>::cast(frame_inspector.GetFunction());
|
| RUNTIME_ASSERT(function->shared()->IsSubjectToDebugging());
|
| Handle<SharedFunctionInfo> shared(function->shared());
|
| Handle<ScopeInfo> scope_info(shared->scope_info());
|
| @@ -552,13 +553,13 @@ RUNTIME_FUNCTION(Runtime_GetFrameDetails) {
|
| // Use the value from the stack.
|
| if (scope_info->LocalIsSynthetic(i)) continue;
|
| locals->set(local * 2, scope_info->LocalName(i));
|
| - locals->set(local * 2 + 1, frame_inspector.GetExpression(i));
|
| + locals->set(local * 2 + 1, *(frame_inspector.GetExpression(i)));
|
| local++;
|
| }
|
| if (local < local_count) {
|
| // Get the context containing declarations.
|
| Handle<Context> context(
|
| - Context::cast(frame_inspector.GetContext())->closure_context());
|
| + Handle<Context>::cast(frame_inspector.GetContext())->closure_context());
|
| for (; i < scope_info->LocalCount(); ++i) {
|
| if (scope_info->LocalIsSynthetic(i)) continue;
|
| Handle<String> name(scope_info->LocalName(i));
|
| @@ -637,7 +638,7 @@ RUNTIME_FUNCTION(Runtime_GetFrameDetails) {
|
| details->set(kFrameDetailsFrameIdIndex, *frame_id);
|
|
|
| // Add the function (same as in function frame).
|
| - details->set(kFrameDetailsFunctionIndex, frame_inspector.GetFunction());
|
| + details->set(kFrameDetailsFunctionIndex, *(frame_inspector.GetFunction()));
|
|
|
| // Add the arguments count.
|
| details->set(kFrameDetailsArgumentCountIndex, Smi::FromInt(argument_count));
|
| @@ -687,7 +688,7 @@ RUNTIME_FUNCTION(Runtime_GetFrameDetails) {
|
| // Parameter value.
|
| if (i < frame_inspector.GetParametersCount()) {
|
| // Get the value from the stack.
|
| - details->set(details_index++, frame_inspector.GetParameter(i));
|
| + details->set(details_index++, *(frame_inspector.GetParameter(i)));
|
| } else {
|
| details->set(details_index++, heap->undefined_value());
|
| }
|
|
|