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

Unified Diff: runtime/vm/weak_code.cc

Issue 1376963002: Cleanup: we are not patching entries any longer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup 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 side-by-side diff with in-line comments
Download patch
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/weak_code.cc
diff --git a/runtime/vm/weak_code.cc b/runtime/vm/weak_code.cc
index 85e623afb9c1b7d138e40c017bb8244be728275f..964f916f14d80c0d02d682a949608da2eaf5bab7 100644
--- a/runtime/vm/weak_code.cc
+++ b/runtime/vm/weak_code.cc
@@ -116,16 +116,14 @@ void WeakCodeReferences::DisableCode() {
function.ClearCode();
// Invalidate the old code object so existing references to it
// (from optimized code) will fail when invoked.
rmacnak 2015/09/29 23:30:57 will be patched when invoked
srdjan 2015/09/30 16:36:18 Done.
- if (!CodePatcher::IsEntryPatched(code)) {
- CodePatcher::PatchEntry(
- code, Code::Handle(StubCode::FixCallersTarget_entry()->code()));
+ if (!code.IsDisabled()) {
+ code.DisableDartCode();
}
} else {
// Make non-OSR code non-entrant.
- if (!CodePatcher::IsEntryPatched(code)) {
+ if (!code.IsDisabled()) {
ReportSwitchingCode(code);
- CodePatcher::PatchEntry(
- code, Code::Handle(StubCode::FixCallersTarget_entry()->code()));
+ code.DisableDartCode();
}
}
}
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698