diff options
| author | Ben Murdoch <benm@google.com> | 2010-07-22 14:51:16 +0100 |
|---|---|---|
| committer | Ben Murdoch <benm@google.com> | 2010-07-22 14:51:16 +0100 |
| commit | 3bec4d28b1f388dbc06a9c4276e1a03e86c52b04 (patch) | |
| tree | 538bb9cb5e3664733f56ba3292342ccc426eb9f9 /src/frames.cc | |
| parent | 2794f167cd167a39859e9be5be3b05bdb5feb10a (diff) | |
| download | android_external_v8-3bec4d28b1f388dbc06a9c4276e1a03e86c52b04.tar.gz android_external_v8-3bec4d28b1f388dbc06a9c4276e1a03e86c52b04.tar.bz2 android_external_v8-3bec4d28b1f388dbc06a9c4276e1a03e86c52b04.zip | |
Update V8 to r5091 as required by WebKit r63859.
Change-Id: I8e35d765e6f6c7f89eccff900e1cabe2d5dd6110
Diffstat (limited to 'src/frames.cc')
| -rw-r--r-- | src/frames.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/frames.cc b/src/frames.cc index 67a20d3c..bdd5100e 100644 --- a/src/frames.cc +++ b/src/frames.cc @@ -532,8 +532,11 @@ void JavaScriptFrame::Print(StringStream* accumulator, if (IsConstructor()) accumulator->Add("new "); accumulator->PrintFunction(function, receiver, &code); + Handle<SerializedScopeInfo> scope_info(SerializedScopeInfo::Empty()); + if (function->IsJSFunction()) { Handle<SharedFunctionInfo> shared(JSFunction::cast(function)->shared()); + scope_info = Handle<SerializedScopeInfo>(shared->scope_info()); Object* script_obj = shared->script(); if (script_obj->IsScript()) { Handle<Script> script(Script::cast(script_obj)); @@ -561,7 +564,7 @@ void JavaScriptFrame::Print(StringStream* accumulator, // Get scope information for nicer output, if possible. If code is // NULL, or doesn't contain scope info, info will return 0 for the // number of parameters, stack slots, or context slots. - ScopeInfo<PreallocatedStorage> info(code); + ScopeInfo<PreallocatedStorage> info(*scope_info); // Print the parameters. int parameters_count = ComputeParametersCount(); |
