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

Unified Diff: runtime/vm/code_patcher_arm.cc

Issue 730343005: Write-barrier verification on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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_arm.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_patcher_arm.cc
===================================================================
--- runtime/vm/code_patcher_arm.cc (revision 42190)
+++ runtime/vm/code_patcher_arm.cc (working copy)
@@ -7,6 +7,7 @@
#include "vm/code_patcher.h"
+#include "vm/flow_graph_compiler.h"
#include "vm/instructions.h"
#include "vm/object.h"
@@ -103,7 +104,8 @@
class EdgeCounter : public ValueObject {
public:
EdgeCounter(uword pc, const Code& code)
- : end_(pc - kAdjust), object_pool_(Array::Handle(code.ObjectPool())) {
+ : end_(pc - FlowGraphCompiler::EdgeCounterIncrementSizeInBytes()),
+ object_pool_(Array::Handle(code.ObjectPool())) {
// An IsValid predicate is complicated and duplicates the code in the
// decoding function. Instead we rely on decoding the pattern which
// will assert partial validity.
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698