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

Unified Diff: runtime/vm/assembler_arm64.h

Issue 1270803003: VM: More abstract interface for generating stub calls. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/assembler_arm.cc ('k') | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm64.h
diff --git a/runtime/vm/assembler_arm64.h b/runtime/vm/assembler_arm64.h
index 701e7c44adb54bfc198aff0d2c8c70b06b80bec1..936e1050f01c673ab2997126fed87f1c3ce79444 100644
--- a/runtime/vm/assembler_arm64.h
+++ b/runtime/vm/assembler_arm64.h
@@ -21,6 +21,7 @@ namespace dart {
// Forward declarations.
class RuntimeEntry;
+class StubEntry;
class Immediate : public ValueObject {
public:
@@ -1203,6 +1204,8 @@ class Assembler : public ValueObject {
br(TMP);
}
+ void Branch(const StubEntry& stub_entry);
+
// Fixed length branch to label.
void BranchPatchable(const ExternalLabel* label) {
// TODO(zra): Use LoadExternalLabelFixed if possible.
@@ -1210,11 +1213,15 @@ class Assembler : public ValueObject {
br(TMP);
}
+ void BranchPatchable(const StubEntry& stub_entry);
+
void BranchLink(const ExternalLabel* label) {
LoadExternalLabel(TMP, label);
blr(TMP);
}
+ void BranchLink(const StubEntry& stub_entry);
+
// BranchLinkPatchable must be a fixed-length sequence so we can patch it
// with the debugger.
void BranchLinkPatchable(const ExternalLabel* label) {
@@ -1222,6 +1229,8 @@ class Assembler : public ValueObject {
blr(TMP);
}
+ void BranchLinkPatchable(const StubEntry& stub_entry);
+
// Macros accepting a pp Register argument may attempt to load values from
// the object pool when possible. Unless you are sure that the untagged object
// pool pointer is in another register, or that it is not available at all,
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/assembler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698