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

Side by Side Diff: runtime/vm/assembler_ia32.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_arm.cc ('k') | runtime/vm/assembler_ia32.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_IA32_H_ 5 #ifndef VM_ASSEMBLER_IA32_H_
6 #define VM_ASSEMBLER_IA32_H_ 6 #define VM_ASSEMBLER_IA32_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_ia32.h directly; use assembler.h instead. 9 #error Do not include assembler_ia32.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 void SmiUntag(Register reg) { 694 void SmiUntag(Register reg) {
695 sarl(reg, Immediate(kSmiTagSize)); 695 sarl(reg, Immediate(kSmiTagSize));
696 } 696 }
697 697
698 intptr_t PreferredLoopAlignment() { return 16; } 698 intptr_t PreferredLoopAlignment() { return 16; }
699 void Align(intptr_t alignment, intptr_t offset); 699 void Align(intptr_t alignment, intptr_t offset);
700 void Bind(Label* label); 700 void Bind(Label* label);
701 701
702 intptr_t CodeSize() const { return buffer_.Size(); } 702 intptr_t CodeSize() const { return buffer_.Size(); }
703 intptr_t prologue_offset() const { return prologue_offset_; } 703 intptr_t prologue_offset() const { return prologue_offset_; }
704
705 // Count the fixups that produce a pointer offset, without processing
706 // the fixups.
707 intptr_t CountPointerOffsets() const {
708 return buffer_.CountPointerOffsets();
709 }
704 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { 710 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const {
705 return buffer_.pointer_offsets(); 711 return buffer_.pointer_offsets();
706 } 712 }
707 const GrowableObjectArray& object_pool() const { return object_pool_; } 713 const GrowableObjectArray& object_pool() const { return object_pool_; }
708 714
709 void FinalizeInstructions(const MemoryRegion& region) { 715 void FinalizeInstructions(const MemoryRegion& region) {
710 buffer_.FinalizeInstructions(region); 716 buffer_.FinalizeInstructions(region);
711 } 717 }
712 718
713 // Set up a Dart frame on entry with a frame pointer and PC information to 719 // Set up a Dart frame on entry with a frame pointer and PC information to
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 } 887 }
882 888
883 889
884 inline void Assembler::EmitOperandSizeOverride() { 890 inline void Assembler::EmitOperandSizeOverride() {
885 EmitUint8(0x66); 891 EmitUint8(0x66);
886 } 892 }
887 893
888 } // namespace dart 894 } // namespace dart
889 895
890 #endif // VM_ASSEMBLER_IA32_H_ 896 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698