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

Unified Diff: runtime/vm/assembler_mips.cc

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_mips.h ('k') | runtime/vm/assembler_x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.cc
diff --git a/runtime/vm/assembler_mips.cc b/runtime/vm/assembler_mips.cc
index 2cd7f29d0bebf36702052ebc37d4e283e5135ff0..e4f90827d0b063aa0d29c9a28bf15613a89886d7 100644
--- a/runtime/vm/assembler_mips.cc
+++ b/runtime/vm/assembler_mips.cc
@@ -456,6 +456,37 @@ void Assembler::SubuDetectOverflow(Register rd, Register rs, Register rt,
}
+void Assembler::Branch(const StubEntry& stub_entry) {
+ const ExternalLabel label(stub_entry.EntryPoint());
+ Branch(&label);
+}
+
+
+void Assembler::BranchPatchable(const StubEntry& stub_entry) {
+ const ExternalLabel label(stub_entry.EntryPoint());
+ BranchPatchable(&label);
+}
+
+
+void Assembler::BranchLink(const StubEntry& stub_entry) {
+ const ExternalLabel label(stub_entry.EntryPoint());
+ BranchLink(&label);
+}
+
+
+void Assembler::BranchLink(const StubEntry& stub_entry,
+ Patchability patchable) {
+ const ExternalLabel label(stub_entry.EntryPoint());
+ BranchLink(&label, patchable);
+}
+
+
+void Assembler::BranchLinkPatchable(const StubEntry& stub_entry) {
+ const ExternalLabel label(stub_entry.EntryPoint());
+ BranchLink(&label, kPatchable);
+}
+
+
void Assembler::LoadObjectHelper(Register rd,
const Object& object,
bool is_unique) {
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/assembler_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698