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

Unified Diff: runtime/vm/code_patcher_x64.cc

Issue 17723002: Remove skip_static_calls_ as it uses an obsolete way to check for uncalled static calls. Will be re… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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_x64.cc
===================================================================
--- runtime/vm/code_patcher_x64.cc (revision 24431)
+++ runtime/vm/code_patcher_x64.cc (working copy)
@@ -214,16 +214,6 @@
}
-RawFunction* CodePatcher::GetUnoptimizedStaticCallTargetAt(
- uword return_address, const Code& code) {
- ASSERT(code.ContainsInstructionAt(return_address));
- UnoptimizedStaticCall static_call(return_address);
- ICData& ic_data = ICData::Handle();
- ic_data ^= static_call.ic_data();
- return ic_data.GetTargetAt(0);
-}
-
-
void CodePatcher::InsertCallAt(uword start, uword target) {
// The inserted call should not overlap the lazy deopt jump code.
ASSERT(start + ShortCallPattern::InstructionLength() <= target);
@@ -234,6 +224,18 @@
}
+RawFunction* CodePatcher::GetUnoptimizedStaticCallAt(
+ uword return_address, const Code& code, ICData* ic_data_result) {
+ ASSERT(code.ContainsInstructionAt(return_address));
+ UnoptimizedStaticCall static_call(return_address);
+ ICData& ic_data = ICData::Handle();
+ ic_data ^= static_call.ic_data();
+ if (ic_data_result != NULL) {
+ *ic_data_result = ic_data.raw();
+ }
+ return ic_data.GetTargetAt(0);
+}
siva 2013/06/25 21:21:05 This code seems pretty similar in all the target v
srdjan 2013/06/25 21:26:08 Next CL.
+
} // namespace dart
#endif // defined TARGET_ARCH_X64

Powered by Google App Engine
This is Rietveld 408576698