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

Unified Diff: runtime/vm/assembler_x64.h

Issue 136563002: Landing: Write protect executable pages in the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Added command line flag Created 6 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/assembler_x64.h
diff --git a/runtime/vm/assembler_x64.h b/runtime/vm/assembler_x64.h
index 0e1f2a6f8c0ef8166f322e488cf3c4a1bcfd3e72..feee3ade45f00537464e7cc57cb2ee159aa22ccf 100644
--- a/runtime/vm/assembler_x64.h
+++ b/runtime/vm/assembler_x64.h
@@ -758,6 +758,13 @@ class Assembler : public ValueObject {
intptr_t CodeSize() const { return buffer_.Size(); }
intptr_t prologue_offset() const { return prologue_offset_; }
+
+ // Count the fixups that produce a pointer offset, without processing
+ // the fixups.
+ intptr_t CountPointerOffsets() const {
+ return buffer_.CountPointerOffsets();
Ivan Posva 2014/02/03 05:44:35 Does x64 really create pointer offsets or are all
Florian Schneider 2014/02/10 11:56:17 Possibly yes, if CanLoadImmediateFromPool return f
+ }
+
const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const {
return buffer_.pointer_offsets();
}

Powered by Google App Engine
This is Rietveld 408576698