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

Unified Diff: runtime/vm/instructions_x64.cc

Issue 10912146: Finish implementing lazy deoptimization (ia32, x64). Ran tests with --deoptimize-alot. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/instructions_x64.cc
===================================================================
--- runtime/vm/instructions_x64.cc (revision 12092)
+++ runtime/vm/instructions_x64.cc (working copy)
@@ -53,6 +53,17 @@
}
+void ShortCallPattern::SetTargetAddress(uword target) const {
+ ASSERT(IsValid());
+ *reinterpret_cast<uint32_t*>(start() + 1) = target - start() - kLengthInBytes;
+}
+
+
+const int* ShortCallPattern::pattern() const {
+ static const int kCallPattern[kLengthInBytes] = {0xE8, -1, -1, -1, -1};
+ return kCallPattern;
+}
+
} // namespace dart
#endif // defined TARGET_ARCH_X64
« no previous file with comments | « runtime/vm/instructions_x64.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698