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

Unified Diff: runtime/vm/assembler_x64.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_mips.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64.h
diff --git a/runtime/vm/assembler_x64.h b/runtime/vm/assembler_x64.h
index eb507c13930060ff6c767c2fd2d1e20323609314..edc7bc28057721e0fa9681f6f4fbd75972cb22de 100644
--- a/runtime/vm/assembler_x64.h
+++ b/runtime/vm/assembler_x64.h
@@ -19,6 +19,7 @@ namespace dart {
// Forward declarations.
class RuntimeEntry;
+class StubEntry;
class Immediate : public ValueObject {
public:
@@ -692,6 +693,7 @@ class Assembler : public ValueObject {
// Note: verified_mem mode forces far jumps.
void jmp(Label* label, bool near = kFarJump);
void jmp(const ExternalLabel* label);
+ void jmp(const StubEntry& stub_entry);
void lock();
void cmpxchgl(const Address& address, Register reg);
@@ -766,10 +768,15 @@ class Assembler : public ValueObject {
const Function& function,
Register new_pp);
void JmpPatchable(const ExternalLabel* label, Register pp);
+ void JmpPatchable(const StubEntry& stub_entry, Register pp);
void Jmp(const ExternalLabel* label, Register pp);
+ void Jmp(const StubEntry& stub_entry, Register pp);
void J(Condition condition, const ExternalLabel* label, Register pp);
+ void J(Condition condition, const StubEntry& stub_entry, Register pp);
void CallPatchable(const ExternalLabel* label);
+ void CallPatchable(const StubEntry& stub_entry);
void Call(const ExternalLabel* label);
+ void Call(const StubEntry& stub_entry);
// Unaware of write barrier (use StoreInto* methods for storing to objects).
// TODO(koda): Add StackAddress/HeapAddress types to prevent misuse.
void StoreObject(const Address& dst, const Object& obj);
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698