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

Unified Diff: runtime/vm/code_patcher_ia32.cc

Issue 12260026: Add support for object pool (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/code_patcher_ia32.cc
===================================================================
--- runtime/vm/code_patcher_ia32.cc (revision 18597)
+++ runtime/vm/code_patcher_ia32.cc (working copy)
@@ -142,19 +142,24 @@
};
-uword CodePatcher::GetStaticCallTargetAt(uword return_address) {
+uword CodePatcher::GetStaticCallTargetAt(uword return_address,
+ const Code& code) {
srdjan 2013/02/15 21:24:27 Here and below, you could assert that return addre
regis 2013/02/15 22:51:31 LookupCode would be too slow, but I can assert tha
StaticCall call(return_address);
return call.target();
}
-void CodePatcher::PatchStaticCallAt(uword return_address, uword new_target) {
+void CodePatcher::PatchStaticCallAt(uword return_address,
+ const Code& code,
+ uword new_target) {
StaticCall call(return_address);
call.set_target(new_target);
}
-void CodePatcher::PatchInstanceCallAt(uword return_address, uword new_target) {
+void CodePatcher::PatchInstanceCallAt(uword return_address,
+ const Code& code,
+ uword new_target) {
InstanceCall call(return_address);
call.set_target(new_target);
}
@@ -169,12 +174,8 @@
}
-bool CodePatcher::IsDartCall(uword return_address) {
- return DartCallPattern::IsValid(return_address);
-}
-
-
uword CodePatcher::GetInstanceCallAt(uword return_address,
+ const Code& code,
ICData* ic_data,
Array* arguments_descriptor) {
InstanceCall call(return_address);

Powered by Google App Engine
This is Rietveld 408576698