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

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

Issue 1343383003: VM: Store edge counters in one per-function array. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: clean up comments, save space in IL Instruction class. Created 5 years, 3 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
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 #include "vm/native_entry.h" 10 #include "vm/native_entry.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Return target of an unoptimized static call and its ICData object 80 // Return target of an unoptimized static call and its ICData object
81 // (calls target via a stub). 81 // (calls target via a stub).
82 static RawFunction* GetUnoptimizedStaticCallAt(uword return_address, 82 static RawFunction* GetUnoptimizedStaticCallAt(uword return_address,
83 const Code& code, 83 const Code& code,
84 ICData* ic_data); 84 ICData* ic_data);
85 85
86 static intptr_t InstanceCallSizeInBytes(); 86 static intptr_t InstanceCallSizeInBytes();
87 87
88 static void InsertCallAt(uword start, uword target); 88 static void InsertCallAt(uword start, uword target);
89 89
90 static RawObject* GetEdgeCounterAt(uword pc, const Code& code);
91
92 static void PatchPoolPointerCallAt(uword return_address, 90 static void PatchPoolPointerCallAt(uword return_address,
93 const Code& code, 91 const Code& code,
94 uword new_target); 92 uword new_target);
95 93
96 static uword GetNativeCallAt(uword return_address, 94 static uword GetNativeCallAt(uword return_address,
97 const Code& code, 95 const Code& code,
98 NativeFunction* target); 96 NativeFunction* target);
99 97
100 static void PatchNativeCallAt(uword return_address, 98 static void PatchNativeCallAt(uword return_address,
101 const Code& code, 99 const Code& code,
102 NativeFunction target, 100 NativeFunction target,
103 const Code& trampoline); 101 const Code& trampoline);
104 }; 102 };
105 103
106 } // namespace dart 104 } // namespace dart
107 105
108 #endif // VM_CODE_PATCHER_H_ 106 #endif // VM_CODE_PATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698