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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 711833002: Support verified heap pointer writes on ia32. (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
Index: runtime/vm/flow_graph_compiler_ia32.cc
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.cc (revision 41609)
+++ runtime/vm/flow_graph_compiler_ia32.cc (working copy)
@@ -21,6 +21,7 @@
#include "vm/stack_frame.h"
#include "vm/stub_code.h"
#include "vm/symbols.h"
+#include "vm/verified_memory.h"
namespace dart {
@@ -1234,10 +1235,15 @@
#endif // DEBUG
__ IncrementSmiField(FieldAddress(EAX, Array::element_offset(0)), 1);
DEBUG_ASSERT((assembler_->CodeSize() - increment_start) ==
- CodePatcher::EdgeCounterIncrementSizeInBytes());
+ EdgeCounterIncrementSizeInBytes());
}
+int32_t FlowGraphCompiler::EdgeCounterIncrementSizeInBytes() {
+ return VerifiedMemory::enabled() ? 16 : 4;
+}
+
+
void FlowGraphCompiler::EmitOptimizedInstanceCall(
ExternalLabel* target_label,
const ICData& ic_data,

Powered by Google App Engine
This is Rietveld 408576698