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

Unified Diff: runtime/vm/flow_graph.cc

Issue 564843002: Initial steps towards cleaning up integer arithmetic IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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.cc
diff --git a/runtime/vm/flow_graph.cc b/runtime/vm/flow_graph.cc
index 82bf692b4eaa868b52319a2d5e1201e0b9bb697b..3c1e76910642ed19620c591881c3e1405727144c 100644
--- a/runtime/vm/flow_graph.cc
+++ b/runtime/vm/flow_graph.cc
@@ -95,7 +95,7 @@ ConstantInstr* FlowGraph::GetConstant(const Object& object) {
ConstantInstr* constant = constant_instr_pool_.Lookup(object);
if (constant == NULL) {
// Otherwise, allocate and add it to the pool.
- constant = new(isolate()) ConstantInstr(object);
+ constant = new(isolate()) ConstantInstr(Object::ZoneHandle(object.raw()));
srdjan 2014/09/11 17:38:11 isolate(), object.raw()
constant->set_ssa_temp_index(alloc_ssa_temp_index());
AddToInitialDefinitions(constant);
constant_instr_pool_.Insert(constant);

Powered by Google App Engine
This is Rietveld 408576698