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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 15563007: Remove an unnecessary setter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index 558436e10fdcba3e460be95a676fd4ce9ede84fa..a5d50b111fa942aa49cf4c64f8130d496736713c 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -338,9 +338,10 @@ void FlowGraphCompiler::AddStaticCallTarget(const Function& func) {
void FlowGraphCompiler::AddDeoptIndexAtCall(intptr_t deopt_id,
intptr_t token_pos) {
ASSERT(is_optimizing());
- CompilerDeoptInfo* info = new CompilerDeoptInfo(deopt_id, kDeoptAtCall);
- ASSERT(pending_deoptimization_env_ != NULL);
- info->set_deoptimization_env(pending_deoptimization_env_);
+ CompilerDeoptInfo* info =
+ new CompilerDeoptInfo(deopt_id,
+ kDeoptAtCall,
+ pending_deoptimization_env_);
info->set_pc_offset(assembler()->CodeSize());
deopt_infos_.Add(info);
}
@@ -399,11 +400,11 @@ void FlowGraphCompiler::RecordSafepoint(LocationSummary* locs) {
Label* FlowGraphCompiler::AddDeoptStub(intptr_t deopt_id,
DeoptReasonId reason) {
- CompilerDeoptInfoWithStub* stub =
- new CompilerDeoptInfoWithStub(deopt_id, reason);
ASSERT(is_optimizing_);
- ASSERT(pending_deoptimization_env_ != NULL);
- stub->set_deoptimization_env(pending_deoptimization_env_);
+ CompilerDeoptInfoWithStub* stub =
+ new CompilerDeoptInfoWithStub(deopt_id,
+ reason,
+ pending_deoptimization_env_);
deopt_infos_.Add(stub);
return stub->entry_label();
}

Powered by Google App Engine
This is Rietveld 408576698