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

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

Issue 711833002: Support verified heap pointer writes on ia32. (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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Class for patching compiled code. 4 // Class for patching compiled code.
5 5
6 #ifndef VM_CODE_PATCHER_H_ 6 #ifndef VM_CODE_PATCHER_H_
7 #define VM_CODE_PATCHER_H_ 7 #define VM_CODE_PATCHER_H_
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // Return the arguments descriptor array of the closure call 85 // Return the arguments descriptor array of the closure call
86 // before the given return address. 86 // before the given return address.
87 static RawArray* GetClosureArgDescAt(uword return_address, 87 static RawArray* GetClosureArgDescAt(uword return_address,
88 const Code& code); 88 const Code& code);
89 89
90 static intptr_t InstanceCallSizeInBytes(); 90 static intptr_t InstanceCallSizeInBytes();
91 91
92 static void InsertCallAt(uword start, uword target); 92 static void InsertCallAt(uword start, uword target);
93 93
94 static RawObject* GetEdgeCounterAt(uword pc, const Code& code); 94 static RawObject* GetEdgeCounterAt(uword pc, const Code& code);
95 #if defined(TARGET_ARCH_IA32)
96 static int32_t EdgeCounterIncrementSizeInBytes();
97 #endif // TARGET_ARCH_IA32
98 95
99 static int32_t GetPoolOffsetAt(uword return_address); 96 static int32_t GetPoolOffsetAt(uword return_address);
100 static void SetPoolOffsetAt(uword return_address, int32_t offset); 97 static void SetPoolOffsetAt(uword return_address, int32_t offset);
101 }; 98 };
102 99
103 } // namespace dart 100 } // namespace dart
104 101
105 #endif // VM_CODE_PATCHER_H_ 102 #endif // VM_CODE_PATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698