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

Side by Side Diff: runtime/vm/assembler_arm.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: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler.cc ('k') | runtime/vm/assembler_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_ASSEMBLER_ARM_H_ 5 #ifndef VM_ASSEMBLER_ARM_H_
6 #define VM_ASSEMBLER_ARM_H_ 6 #define VM_ASSEMBLER_ARM_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_arm.h directly; use assembler.h instead. 9 #error Do not include assembler_arm.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 comments_() { } 286 comments_() { }
287 ~Assembler() { } 287 ~Assembler() { }
288 288
289 void PopRegister(Register r) { Pop(r); } 289 void PopRegister(Register r) { Pop(r); }
290 290
291 void Bind(Label* label); 291 void Bind(Label* label);
292 292
293 // Misc. functionality 293 // Misc. functionality
294 intptr_t CodeSize() const { return buffer_.Size(); } 294 intptr_t CodeSize() const { return buffer_.Size(); }
295 intptr_t prologue_offset() const { return prologue_offset_; } 295 intptr_t prologue_offset() const { return prologue_offset_; }
296
297 // Count the fixups that produce a pointer offset, without processing
298 // the fixups. On ARM there are no pointers in code.
299 intptr_t CountPointerOffsets() const { return 0; }
300
296 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { 301 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const {
297 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. 302 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code.
298 return buffer_.pointer_offsets(); 303 return buffer_.pointer_offsets();
299 } 304 }
300 const GrowableObjectArray& object_pool() const { return object_pool_; } 305 const GrowableObjectArray& object_pool() const { return object_pool_; }
301 306
302 bool use_far_branches() const { 307 bool use_far_branches() const {
303 return FLAG_use_far_branches || use_far_branches_; 308 return FLAG_use_far_branches || use_far_branches_;
304 } 309 }
305 310
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 Register value, 880 Register value,
876 Label* no_update); 881 Label* no_update);
877 882
878 DISALLOW_ALLOCATION(); 883 DISALLOW_ALLOCATION();
879 DISALLOW_COPY_AND_ASSIGN(Assembler); 884 DISALLOW_COPY_AND_ASSIGN(Assembler);
880 }; 885 };
881 886
882 } // namespace dart 887 } // namespace dart
883 888
884 #endif // VM_ASSEMBLER_ARM_H_ 889 #endif // VM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler.cc ('k') | runtime/vm/assembler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698