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

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

Issue 721233002: Write barrier audit: Verify previous value in generated code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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 | « no previous file | 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 void leave(); 619 void leave();
620 620
621 void ret(); 621 void ret();
622 void ret(const Immediate& imm); 622 void ret(const Immediate& imm);
623 623
624 // 'size' indicates size in bytes and must be in the range 1..8. 624 // 'size' indicates size in bytes and must be in the range 1..8.
625 void nop(int size = 1); 625 void nop(int size = 1);
626 void int3(); 626 void int3();
627 void hlt(); 627 void hlt();
628 628
629 // Note: verified_mem mode forces far jumps.
629 void j(Condition condition, Label* label, bool near = kFarJump); 630 void j(Condition condition, Label* label, bool near = kFarJump);
630 void j(Condition condition, const ExternalLabel* label); 631 void j(Condition condition, const ExternalLabel* label);
631 632
632 void jmp(Register reg); 633 void jmp(Register reg);
634 // Note: verified_mem mode forces far jumps.
633 void jmp(Label* label, bool near = kFarJump); 635 void jmp(Label* label, bool near = kFarJump);
634 void jmp(const ExternalLabel* label); 636 void jmp(const ExternalLabel* label);
635 637
636 void lock(); 638 void lock();
637 void cmpxchgl(const Address& address, Register reg); 639 void cmpxchgl(const Address& address, Register reg);
638 640
639 void cpuid(); 641 void cpuid();
640 642
641 /* 643 /*
642 * Macros for High-level operations and implemented on all architectures. 644 * Macros for High-level operations and implemented on all architectures.
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 void EmitGenericShift(int rm, Register reg, const Immediate& imm); 924 void EmitGenericShift(int rm, Register reg, const Immediate& imm);
923 void EmitGenericShift(int rm, const Operand& operand, Register shifter); 925 void EmitGenericShift(int rm, const Operand& operand, Register shifter);
924 926
925 void StoreIntoObjectFilter(Register object, Register value, Label* no_update); 927 void StoreIntoObjectFilter(Register object, Register value, Label* no_update);
926 928
927 // Shorter filtering sequence that assumes that value is not a smi. 929 // Shorter filtering sequence that assumes that value is not a smi.
928 void StoreIntoObjectFilterNoSmi(Register object, 930 void StoreIntoObjectFilterNoSmi(Register object,
929 Register value, 931 Register value,
930 Label* no_update); 932 Label* no_update);
931 933
932 // Private helpers for write barrier verification. 934 // Analogous to VerifiedMemory::Verify(address, kWordSize).
935 void VerifyHeapWord(const Address& address);
936 // Analogous to VerifiedMemory::Write.
933 void VerifiedWrite(const Address& dest, Register value); 937 void VerifiedWrite(const Address& dest, Register value);
934 void UnverifiedStoreOldObject(const Address& dest, const Object& value); 938 void UnverifiedStoreOldObject(const Address& dest, const Object& value);
935 939
936 int32_t jit_cookie(); 940 int32_t jit_cookie();
937 941
938 AssemblerBuffer buffer_; 942 AssemblerBuffer buffer_;
939 GrowableObjectArray& object_pool_; // Object pool is not used on ia32. 943 GrowableObjectArray& object_pool_; // Object pool is not used on ia32.
940 intptr_t prologue_offset_; 944 intptr_t prologue_offset_;
941 int32_t jit_cookie_; 945 int32_t jit_cookie_;
942 GrowableArray<CodeComment*> comments_; 946 GrowableArray<CodeComment*> comments_;
(...skipping 29 matching lines...) Expand all
972 } 976 }
973 977
974 978
975 inline void Assembler::EmitOperandSizeOverride() { 979 inline void Assembler::EmitOperandSizeOverride() {
976 EmitUint8(0x66); 980 EmitUint8(0x66);
977 } 981 }
978 982
979 } // namespace dart 983 } // namespace dart
980 984
981 #endif // VM_ASSEMBLER_IA32_H_ 985 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698