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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 685003002: Add missing StoreIntoObject calls in generated code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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_ia32.cc
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.cc (revision 41331)
+++ runtime/vm/flow_graph_compiler_ia32.cc (working copy)
@@ -8,6 +8,7 @@
#include "vm/flow_graph_compiler.h"
#include "vm/ast_printer.h"
+#include "vm/code_patcher.h"
#include "vm/compiler.h"
#include "vm/cpu.h"
#include "vm/dart_entry.h"
@@ -1193,8 +1194,12 @@
counter.SetAt(0, Smi::Handle(Smi::New(0)));
__ Comment("Edge counter");
__ LoadObject(EAX, counter);
- __ addl(FieldAddress(EAX, Array::element_offset(0)),
- Immediate(Smi::RawValue(1)));
+#if defined(DEBUG)
+ intptr_t increment_start = assembler_->CodeSize();
+#endif // DEBUG
+ __ IncrementSmiField(FieldAddress(EAX, Array::element_offset(0)), 1);
+ DEBUG_ASSERT((assembler_->CodeSize() - increment_start) ==
+ CodePatcher::EdgeCounterIncrementSizeInBytes());
}

Powered by Google App Engine
This is Rietveld 408576698