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

Unified Diff: runtime/vm/assembler_arm64.cc

Issue 1316673005: Track which entries in the ObjectPool are native entries, and reset them when loading a precompiled… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
Index: runtime/vm/assembler_arm64.cc
diff --git a/runtime/vm/assembler_arm64.cc b/runtime/vm/assembler_arm64.cc
index 7ea74a2f0ce72435bd16f5dfe76b3cd5f354cbb6..16220b4a0d3ca7f7156384bc936067deda162268 100644
--- a/runtime/vm/assembler_arm64.cc
+++ b/runtime/vm/assembler_arm64.cc
@@ -396,6 +396,14 @@ void Assembler::LoadExternalLabel(Register dst, const ExternalLabel* label) {
}
+void Assembler::LoadNativeEntry(Register dst,
+ const ExternalLabel* label) {
+ const int32_t offset = ObjectPool::element_offset(
+ object_pool_wrapper_.FindNativeEntry(label, kNotPatchable));
+ LoadWordFromPoolOffset(dst, offset);
+}
+
+
void Assembler::LoadExternalLabelFixed(Register dst,
const ExternalLabel* label,
Patchability patchable) {

Powered by Google App Engine
This is Rietveld 408576698