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

Unified Diff: runtime/vm/instructions_x64.cc

Issue 2382953004: Revert "Lazy deopt without code patching." (Closed)
Patch Set: Created 4 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
« no previous file with comments | « runtime/vm/instructions_x64.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_x64.cc
diff --git a/runtime/vm/instructions_x64.cc b/runtime/vm/instructions_x64.cc
index fe0c6ef3af6ec48f96fb93cc1136b713a5cf7636..950fd1676b57f6f048293c1524479c20397ea843 100644
--- a/runtime/vm/instructions_x64.cc
+++ b/runtime/vm/instructions_x64.cc
@@ -12,6 +12,13 @@
namespace dart {
+void ShortCallPattern::SetTargetAddress(uword target) const {
+ ASSERT(IsValid());
+ *reinterpret_cast<uint32_t*>(start() + 1) = target - start() - kLengthInBytes;
+ CPU::FlushICache(start() + 1, kWordSize);
+}
+
+
bool DecodeLoadObjectFromPoolOrThread(uword pc,
const Code& code,
Object* obj) {
« no previous file with comments | « runtime/vm/instructions_x64.h ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698