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

Side by Side Diff: runtime/vm/assembler_mips.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_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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 comments_() { } 147 comments_() { }
148 ~Assembler() { } 148 ~Assembler() { }
149 149
150 void PopRegister(Register r) { Pop(r); } 150 void PopRegister(Register r) { Pop(r); }
151 151
152 void Bind(Label* label); 152 void Bind(Label* label);
153 153
154 // Misc. functionality 154 // Misc. functionality
155 intptr_t CodeSize() const { return buffer_.Size(); } 155 intptr_t CodeSize() const { return buffer_.Size(); }
156 intptr_t prologue_offset() const { return prologue_offset_; } 156 intptr_t prologue_offset() const { return prologue_offset_; }
157
158 // Count the fixups that produce a pointer offset, without processing
159 // the fixups.
160 intptr_t CountPointerOffsets() const {
161 return buffer_.CountPointerOffsets();
162 }
163
157 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { 164 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const {
158 return buffer_.pointer_offsets(); 165 return buffer_.pointer_offsets();
159 } 166 }
160 const GrowableObjectArray& object_pool() const { return object_pool_; } 167 const GrowableObjectArray& object_pool() const { return object_pool_; }
161 void FinalizeInstructions(const MemoryRegion& region) { 168 void FinalizeInstructions(const MemoryRegion& region) {
162 buffer_.FinalizeInstructions(region); 169 buffer_.FinalizeInstructions(region);
163 } 170 }
164 171
165 bool use_far_branches() const { 172 bool use_far_branches() const {
166 return FLAG_use_far_branches || use_far_branches_; 173 return FLAG_use_far_branches || use_far_branches_;
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 Register value, 1300 Register value,
1294 Label* no_update); 1301 Label* no_update);
1295 1302
1296 DISALLOW_ALLOCATION(); 1303 DISALLOW_ALLOCATION();
1297 DISALLOW_COPY_AND_ASSIGN(Assembler); 1304 DISALLOW_COPY_AND_ASSIGN(Assembler);
1298 }; 1305 };
1299 1306
1300 } // namespace dart 1307 } // namespace dart
1301 1308
1302 #endif // VM_ASSEMBLER_MIPS_H_ 1309 #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