Commit 472b1477 authored by Benedikt Meurer's avatar Benedikt Meurer

[frames] No GC is allowed while using the unhandlified TranslatedState.

R=jarin@chromium.org

Review URL: https://codereview.chromium.org/1174593003.

Cr-Commit-Position: refs/heads/master@{#28887}
parent 5204dc07
......@@ -886,6 +886,7 @@ void OptimizedFrame::Summarize(List<FrameSummary>* frames) {
// We create the summary in reverse order because the frames
// in the deoptimization translation are ordered bottom-to-top.
DisallowHeapAllocation no_gc;
TranslatedState state(this);
bool is_constructor = IsConstructor();
for (TranslatedFrame const& frame : state) {
......@@ -987,6 +988,7 @@ void OptimizedFrame::GetFunctions(List<JSFunction*>* functions) {
return JavaScriptFrame::GetFunctions(functions);
}
DisallowHeapAllocation no_gc;
TranslatedState state(this);
for (TranslatedFrame const& frame : state) {
if (frame.kind() == TranslatedFrame::kFunction) {
......
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