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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 842953002: x64 port of r42717. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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_x64.cc
===================================================================
--- runtime/vm/flow_graph_compiler_x64.cc (revision 42713)
+++ runtime/vm/flow_graph_compiler_x64.cc (working copy)
@@ -1286,7 +1286,14 @@
int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() {
// Used by CodePatcher; so must be constant across all code in an isolate.
- return VerifiedMemory::enabled() ? 73 : 5;
+ int32_t size = 5;
+#if defined(DEBUG)
+ size += 33; // VerifySmi
+#endif // DEBUG
+ if (VerifiedMemory::enabled()) {
+ size += 72;
+ }
+ return size;
}

Powered by Google App Engine
This is Rietveld 408576698