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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 10894034: Make constants computations instead of values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 264b623ade62d524a66d1fd3562d0a00c9cc2d39..04d9cdb68080bb4ff453f4138f709109e2a0c45a 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -49,8 +49,7 @@ RawDeoptInfo* DeoptimizationStub::CreateDeoptInfo(FlowGraphCompiler* compiler) {
// Assign locations to values pushed above spill slots with PushArgument.
intptr_t height = compiler->StackSize();
for (intptr_t i = 0; i < values.length(); i++) {
- if (deoptimization_env_->LocationAt(i).IsInvalid() &&
- !values[i]->IsConstant()) {
+ if (deoptimization_env_->LocationAt(i).IsInvalid()) {
ASSERT(values[i]->AsUse()->definition()->IsPushArgument());
*deoptimization_env_->LocationSlotAt(i) = Location::StackSlot(height++);
}

Powered by Google App Engine
This is Rietveld 408576698