[vm/ffi] Unbox Pointer data field - fix bytecode

Fixes: https://github.com/dart-lang/sdk/issues/40898

Change-Id: Ife33da9c9e87e26b21fee30f7fa97292dbd8e31e
Cq-Include-Trybots: luci.dart.try:vm-dartkb-linux-release-x64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/138506
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
Daco Harkes 2020-03-06 09:15:51 +00:00 committed by commit-bot@chromium.org
parent 7b6adc6083
commit 6facea722b

View file

@ -325,8 +325,7 @@ DEFINE_NATIVE_ENTRY(Ffi_asFunctionInternal, 2, 1) {
// the function so that we can reuse the function for each c function with
// the same signature.
const Context& context = Context::Handle(Context::New(1));
context.SetAt(0,
Integer::Handle(zone, Integer::New(pointer.NativeAddress())));
context.SetAt(0, pointer);
return Closure::New(Object::null_type_arguments(),
Object::null_type_arguments(), function, context,