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

Unified Diff: runtime/vm/kernel_to_il.h

Issue 2900963008: Reapply "Shuffle around deopt id allocation... (Closed)
Patch Set: . Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/kernel_to_il.h
diff --git a/runtime/vm/kernel_to_il.h b/runtime/vm/kernel_to_il.h
index ae0db180c64fcf424319616ce136a4bf86aee3d3..cc3f0069abbbac382eb681a24ee54029391fca9b 100644
--- a/runtime/vm/kernel_to_il.h
+++ b/runtime/vm/kernel_to_il.h
@@ -1042,6 +1042,7 @@ class FlowGraphBuilder : public ExpressionVisitor, public StatementVisitor {
void InlineBailout(const char* reason);
TranslationHelper translation_helper_;
+ Thread* thread_;
Zone* zone_;
// The node we are currently compiling (e.g. FunctionNode, Constructor,
@@ -1056,6 +1057,11 @@ class FlowGraphBuilder : public ExpressionVisitor, public StatementVisitor {
intptr_t next_block_id_;
intptr_t AllocateBlockId() { return next_block_id_++; }
+ intptr_t GetNextDeoptId() {
+ // TODO(rmacnak): Record current scope / context level.
+ return thread_->GetNextDeoptId();
+ }
+
intptr_t next_function_id_;
intptr_t AllocateFunctionId() { return next_function_id_++; }

Powered by Google App Engine
This is Rietveld 408576698