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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 721233002: Write barrier audit: Verify previous value in generated code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_ia32.cc
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.cc (revision 41779)
+++ runtime/vm/flow_graph_compiler_ia32.cc (working copy)
@@ -1234,6 +1234,7 @@
intptr_t increment_start = assembler_->CodeSize();
#endif // DEBUG
__ IncrementSmiField(FieldAddress(EAX, Array::element_offset(0)), 1);
+ // If the assertion below fails, update EdgeCounterIncrementSizeInBytes.
DEBUG_ASSERT((assembler_->CodeSize() - increment_start) ==
EdgeCounterIncrementSizeInBytes());
}
@@ -1240,7 +1241,8 @@
int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() {
- return VerifiedMemory::enabled() ? 16 : 4;
+ // Used by CodePatcher; so must be constant across all code in an isolate.
+ return VerifiedMemory::enabled() ? 50 : 4;
}
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/intrinsifier_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698