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) { |