Skip to content

Commit ca29064

Browse files
inobelarcommit-bot@chromium.org
authored andcommitted
[vm/ffi] Changed Pointer::New 'native_address' type back to 'uword'
Addressing comment on #42451 (review) Closes #42559 GitOrigin-RevId: 29176b6 Change-Id: I2a23a0114aae7aa0d26467332ccf18b083a7e421 Cq-Include-Trybots: luci.dart.try:vm-ffi-android-debug-arm-try,vm-ffi-android-debug-arm64-try,app-kernel-linux-debug-x64-try,vm-kernel-linux-debug-ia32-try,vm-kernel-win-debug-x64-try,vm-kernel-precomp-android-release-arm64-try,vm-kernel-precomp-android-release-arm_x64-try,vm-kernel-mac-debug-x64-try,vm-precomp-ffi-qemu-linux-release-arm-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/153069 Commit-Queue: Daco Harkes <[email protected]> Reviewed-by: Daco Harkes <[email protected]>
1 parent 9ca9966 commit ca29064

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

runtime/vm/object.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23468,7 +23468,7 @@ const char* ExternalTypedData::ToCString() const {
2346823468
}
2346923469

2347023470
PointerPtr Pointer::New(const AbstractType& type_arg,
23471-
size_t native_address,
23471+
uword native_address,
2347223472
Heap::Space space) {
2347323473
Thread* thread = Thread::Current();
2347423474
Zone* zone = thread->zone();

runtime/vm/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10163,7 +10163,7 @@ class ByteBuffer : public AllStatic {
1016310163
class Pointer : public Instance {
1016410164
public:
1016510165
static PointerPtr New(const AbstractType& type_arg,
10166-
size_t native_address,
10166+
uword native_address,
1016710167
Heap::Space space = Heap::kNew);
1016810168

1016910169
static intptr_t InstanceSize() {

0 commit comments

Comments
 (0)