Commit 70e72549 authored by yangguo's avatar yangguo Committed by Commit bot

Provide handle scope when printing stack trace for debugging.

It would be nice for 'jst' to work even when no handle scope has been created yet.

R=cbruni@chromium.org

Review-Url: https://codereview.chromium.org/2119313002
Cr-Commit-Position: refs/heads/master@{#37541}
parent 26250989
...@@ -823,6 +823,7 @@ static void PrintFrames(Isolate* isolate, ...@@ -823,6 +823,7 @@ static void PrintFrames(Isolate* isolate,
void Isolate::PrintStack(StringStream* accumulator, PrintStackMode mode) { void Isolate::PrintStack(StringStream* accumulator, PrintStackMode mode) {
// The MentionedObjectCache is not GC-proof at the moment. // The MentionedObjectCache is not GC-proof at the moment.
DisallowHeapAllocation no_gc; DisallowHeapAllocation no_gc;
HandleScope scope(this);
DCHECK(accumulator->IsMentionedObjectCacheClear(this)); DCHECK(accumulator->IsMentionedObjectCacheClear(this));
// Avoid printing anything if there are no frames. // Avoid printing anything if there are no frames.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment