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

Side by Side Diff: runtime/vm/assembler_mips.h

Issue 106593002: Write protect executable pages in the VM. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_mips.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_MIPS_H_ 5 #ifndef VM_ASSEMBLER_MIPS_H_
6 #define VM_ASSEMBLER_MIPS_H_ 6 #define VM_ASSEMBLER_MIPS_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_mips.h directly; use assembler.h instead. 9 #error Do not include assembler_mips.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 comments_() { } 156 comments_() { }
157 ~Assembler() { } 157 ~Assembler() { }
158 158
159 void PopRegister(Register r) { Pop(r); } 159 void PopRegister(Register r) { Pop(r); }
160 160
161 void Bind(Label* label); 161 void Bind(Label* label);
162 162
163 // Misc. functionality 163 // Misc. functionality
164 intptr_t CodeSize() const { return buffer_.Size(); } 164 intptr_t CodeSize() const { return buffer_.Size(); }
165 intptr_t prologue_offset() const { return prologue_offset_; } 165 intptr_t prologue_offset() const { return prologue_offset_; }
166
167 // Count the fixups that produce a pointer offset, without processing
168 // the fixups.
169 intptr_t CountPointerOffsets() const {
170 return buffer_.CountPointerOffsets();
171 }
172
166 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { 173 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const {
167 return buffer_.pointer_offsets(); 174 return buffer_.pointer_offsets();
168 } 175 }
169 const GrowableObjectArray& object_pool() const { return object_pool_; } 176 const GrowableObjectArray& object_pool() const { return object_pool_; }
170 void FinalizeInstructions(const MemoryRegion& region) { 177 void FinalizeInstructions(const MemoryRegion& region) {
171 buffer_.FinalizeInstructions(region); 178 buffer_.FinalizeInstructions(region);
172 } 179 }
173 180
174 bool use_far_branches() const { 181 bool use_far_branches() const {
175 return FLAG_use_far_branches || use_far_branches_; 182 return FLAG_use_far_branches || use_far_branches_;
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1286 Register value, 1293 Register value,
1287 Label* no_update); 1294 Label* no_update);
1288 1295
1289 DISALLOW_ALLOCATION(); 1296 DISALLOW_ALLOCATION();
1290 DISALLOW_COPY_AND_ASSIGN(Assembler); 1297 DISALLOW_COPY_AND_ASSIGN(Assembler);
1291 }; 1298 };
1292 1299
1293 } // namespace dart 1300 } // namespace dart
1294 1301
1295 #endif // VM_ASSEMBLER_MIPS_H_ 1302 #endif // VM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698