Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: src/deoptimizer.cc

Issue 1865833002: [generators] Decouple generator resume from fullcodegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/code-stub-assembler.cc ('k') | src/frames.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/deoptimizer.h" 5 #include "src/deoptimizer.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/ast/prettyprinter.h" 8 #include "src/ast/prettyprinter.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/disasm.h" 10 #include "src/disasm.h"
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 " / %" V8PRIxPTR "]\n", reinterpret_cast<intptr_t>(function)); 289 " / %" V8PRIxPTR "]\n", reinterpret_cast<intptr_t>(function));
290 } 290 }
291 SafepointEntry safepoint = code->GetSafepointEntry(it.frame()->pc()); 291 SafepointEntry safepoint = code->GetSafepointEntry(it.frame()->pc());
292 int deopt_index = safepoint.deoptimization_index(); 292 int deopt_index = safepoint.deoptimization_index();
293 // Turbofan deopt is checked when we are patching addresses on stack. 293 // Turbofan deopt is checked when we are patching addresses on stack.
294 bool turbofanned = code->is_turbofanned() && 294 bool turbofanned = code->is_turbofanned() &&
295 function->shared()->asm_function() && 295 function->shared()->asm_function() &&
296 !FLAG_turbo_asm_deoptimization; 296 !FLAG_turbo_asm_deoptimization;
297 bool safe_to_deopt = 297 bool safe_to_deopt =
298 deopt_index != Safepoint::kNoDeoptimizationIndex || turbofanned; 298 deopt_index != Safepoint::kNoDeoptimizationIndex || turbofanned;
299 CHECK(topmost_optimized_code == NULL || safe_to_deopt || turbofanned); 299 bool builtin = code->kind() == Code::BUILTIN;
Michael Starzinger 2016/04/06 08:29:33 Not actionable for this CL: As discussed offline,
300 CHECK(topmost_optimized_code == NULL || safe_to_deopt || turbofanned ||
301 builtin);
300 if (topmost_optimized_code == NULL) { 302 if (topmost_optimized_code == NULL) {
301 topmost_optimized_code = code; 303 topmost_optimized_code = code;
302 safe_to_deopt_topmost_optimized_code = safe_to_deopt; 304 safe_to_deopt_topmost_optimized_code = safe_to_deopt;
303 } 305 }
304 } 306 }
305 } 307 }
306 #endif 308 #endif
307 309
308 // Move marked code from the optimized code list to the deoptimized 310 // Move marked code from the optimized code list to the deoptimized
309 // code list, collecting them into a ZoneList. 311 // code list, collecting them into a ZoneList.
(...skipping 3501 matching lines...) Expand 10 before | Expand all | Expand 10 after
3811 CHECK(value_info->IsMaterializedObject()); 3813 CHECK(value_info->IsMaterializedObject());
3812 3814
3813 value_info->value_ = 3815 value_info->value_ =
3814 Handle<Object>(previously_materialized_objects->get(i), isolate_); 3816 Handle<Object>(previously_materialized_objects->get(i), isolate_);
3815 } 3817 }
3816 } 3818 }
3817 } 3819 }
3818 3820
3819 } // namespace internal 3821 } // namespace internal
3820 } // namespace v8 3822 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-stub-assembler.cc ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698