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

Unified Diff: runtime/vm/code_patcher.h

Issue 1294113004: VM: Link native calls lazily. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: addressed comments 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/ast.h ('k') | runtime/vm/code_patcher_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_patcher.h
diff --git a/runtime/vm/code_patcher.h b/runtime/vm/code_patcher.h
index f563426099303e7af325bc9c96fcf02996f6cd30..57ee46a60bffcf1eaf72b49b6d4b53aabc4f2b34 100644
--- a/runtime/vm/code_patcher.h
+++ b/runtime/vm/code_patcher.h
@@ -7,6 +7,7 @@
#define VM_CODE_PATCHER_H_
#include "vm/allocation.h"
+#include "vm/native_entry.h"
namespace dart {
@@ -88,11 +89,18 @@ class CodePatcher : public AllStatic {
static RawObject* GetEdgeCounterAt(uword pc, const Code& code);
- static int32_t GetPoolOffsetAt(uword return_address);
- static void SetPoolOffsetAt(uword return_address, int32_t offset);
static void PatchPoolPointerCallAt(uword return_address,
const Code& code,
uword new_target);
+
+ static uword GetNativeCallAt(uword return_address,
+ const Code& code,
+ NativeFunction* target);
+
+ static void PatchNativeCallAt(uword return_address,
+ const Code& code,
+ NativeFunction target,
+ const Code& trampoline);
};
} // namespace dart
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/code_patcher_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698