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

Side by Side 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: 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_mips.cc ('k') | runtime/vm/code_generator.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_X64_H_ 5 #ifndef VM_ASSEMBLER_X64_H_
6 #define VM_ASSEMBLER_X64_H_ 6 #define VM_ASSEMBLER_X64_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_x64.h directly; use assembler.h instead. 9 #error Do not include assembler_x64.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 745
746 int PreferredLoopAlignment() { return 16; } 746 int PreferredLoopAlignment() { return 16; }
747 void Align(int alignment, intptr_t offset); 747 void Align(int alignment, intptr_t offset);
748 void Bind(Label* label); 748 void Bind(Label* label);
749 749
750 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3); 750 void Comment(const char* format, ...) PRINTF_ATTRIBUTE(2, 3);
751 const Code::Comments& GetCodeComments() const; 751 const Code::Comments& GetCodeComments() const;
752 752
753 intptr_t CodeSize() const { return buffer_.Size(); } 753 intptr_t CodeSize() const { return buffer_.Size(); }
754 intptr_t prologue_offset() const { return prologue_offset_; } 754 intptr_t prologue_offset() const { return prologue_offset_; }
755
756 // Count the fixups that produce a pointer offset, without processing
757 // the fixups.
758 intptr_t CountPointerOffsets() const {
759 return buffer_.CountPointerOffsets();
760 }
761
755 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { 762 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const {
756 return buffer_.pointer_offsets(); 763 return buffer_.pointer_offsets();
757 } 764 }
758 const GrowableObjectArray& object_pool() const { return object_pool_; } 765 const GrowableObjectArray& object_pool() const { return object_pool_; }
759 766
760 void FinalizeInstructions(const MemoryRegion& region) { 767 void FinalizeInstructions(const MemoryRegion& region) {
761 buffer_.FinalizeInstructions(region); 768 buffer_.FinalizeInstructions(region);
762 } 769 }
763 770
764 // Index of constant pool entries pointing to debugger stubs. 771 // Index of constant pool entries pointing to debugger stubs.
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 } 1059 }
1053 1060
1054 1061
1055 inline void Assembler::EmitOperandSizeOverride() { 1062 inline void Assembler::EmitOperandSizeOverride() {
1056 EmitUint8(0x66); 1063 EmitUint8(0x66);
1057 } 1064 }
1058 1065
1059 } // namespace dart 1066 } // namespace dart
1060 1067
1061 #endif // VM_ASSEMBLER_X64_H_ 1068 #endif // VM_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698