Spelling runtime bin

TEST=build VM

Closes: https://github.com/dart-lang/sdk/pull/50862

GitOrigin-RevId: ae54b37666f70f670ee3af11c984c7e9a7e9da26
Change-Id: I459fda0439a1cd368f488a70d84ee6bb915e60bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/277761
Commit-Queue: Martin Kustermann <kustermann@google.com>
Reviewed-by: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
This commit is contained in:
Josh Soref 2023-01-06 07:48:22 +00:00 committed by Commit Queue
parent 6664304545
commit 50b94ef9fc
53 changed files with 67 additions and 67 deletions

View file

@ -57,7 +57,7 @@ RecordShape recordShapeOfRecordType(ir.RecordType node) {
}
/// Computes `recordShapeOfRecordType(node).indexOfName(name)` without creating
/// an itermediate shape.
/// an intermediate shape.
int indexOfNameInRecordShapeOfRecordType(ir.RecordType node, String name) {
final nameIndex = node.named.indexWhere((n) => n.name == name);
if (nameIndex < 0) throw ArgumentError.value(name, 'name');

View file

@ -170,7 +170,7 @@ class RunCommand extends DartdevCommand {
hide: !verbose,
negatable: false,
help: 'When the VM service is told to bind to a particular port, '
'fallback to 0 if it fails to bind instread of failing to '
'fallback to 0 if it fails to bind instead of failing to '
'start.',
);
}

View file

@ -102,7 +102,7 @@ void defineLanguageServerTests() {
Future<String> _readLspMessage(Stream<List<int>> stream) {
// Headers are complete if there are 2x '\r\n\'. The '\r' is part of the LSP
// spec for headers and included on all platforms, not just Windows.
const lspHeaderBodySeperator = '\r\n\r\n';
const lspHeaderBodySeparator = '\r\n\r\n';
final contentLengthRegExp = RegExp(r'Content-Length: (\d+)\r\n');
final completer = Completer<String>();
@ -119,8 +119,8 @@ Future<String> _readLspMessage(Stream<List<int>> stream) {
// To know if we have a complete message, we need to check we have the
// headers, extract the content-length, then check we have that many
// bytes in the body.
if (bufferString.contains(lspHeaderBodySeperator)) {
final parts = bufferString.split(lspHeaderBodySeperator);
if (bufferString.contains(lspHeaderBodySeparator)) {
final parts = bufferString.split(lspHeaderBodySeparator);
final headers = parts[0];
final body = parts[1];
final length =

View file

@ -153,7 +153,7 @@ class DartUtils {
static bool IsHttpSchemeURL(const char* url_name);
static const char* RemoveScheme(const char* url);
// Retuns directory name including the last path separtor.
// Returns directory name including the last path separator.
//
// The return value must be `free`d by the caller.
static char* DirName(const char* url);

View file

@ -177,7 +177,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
// A symbolic link can potentially point to an anon_inode. For
// example, an epoll file descriptor will have a symbolic link whose
// content is the string anon_inode:[eventpoll]. In this case, the
// target doesn't belong to any regular file catogory.
// target doesn't belong to any regular file category.
return kListLink;
}
if (S_ISDIR(entry_info.st_mode)) {

View file

@ -183,7 +183,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
// A symbolic link can potentially point to an anon_inode. For
// example, an epoll file descriptor will have a symbolic link whose
// content is the string anon_inode:[eventpoll]. In this case, the
// target doesn't belong to any regular file catogory.
// target doesn't belong to any regular file category.
return kListLink;
}
if (S_ISDIR(entry_info.st_mode)) {
@ -207,7 +207,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
return kListLink;
} else {
// Regular files, character devices, block devices, fifos, sockets and
// unknown types are all considerred as files.
// unknown types are all considered as files.
return kListFile;
}
}

View file

@ -177,7 +177,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
// A symbolic link can potentially point to an anon_inode. For
// example, an epoll file descriptor will have a symbolic link whose
// content is the string anon_inode:[eventpoll]. In this case, the
// target doesn't belong to any regular file catogory.
// target doesn't belong to any regular file category.
return kListLink;
}
if (S_ISDIR(entry_info.st_mode)) {

View file

@ -164,7 +164,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
// A symbolic link can potentially point to an anon_inode. For
// example, an epoll file descriptor will have a symbolic link whose
// content is the string anon_inode:[eventpoll]. In this case, the
// target doesn't belong to any regular file catogory.
// target doesn't belong to any regular file category.
return kListLink;
}
if (S_ISDIR(entry_info.st_mode)) {

View file

@ -328,7 +328,7 @@ static bool DeleteRecursively(PathBuffer* path) {
SetLastError(last_error);
return false;
}
// All content deleted succesfully, try to delete directory.
// All content deleted successfully, try to delete directory.
prefixed_path.Reset(path_length -
1); // Drop the "\" from the end of the path.
return RemoveDirectoryW(prefixed_path.AsStringW()) != 0;

View file

@ -68,7 +68,7 @@ static void AddToEpollInstance(intptr_t epoll_fd_, DescriptorInfo* di) {
// TODO(dart:io): Verify that the dart end is handling this correctly.
// Epoll does not accept the file descriptor. It could be due to
// already closed file descriptor, or unuspported devices, such
// already closed file descriptor, or unsupported devices, such
// as /dev/null. In such case, mark the file descriptor as closed,
// so dart will handle it accordingly.
di->NotifyAllDartPorts(1 << kCloseEvent);

View file

@ -274,8 +274,8 @@ uint32_t IOHandle::WaitEnd(zx_signals_t observed) {
}
// This function controls the simulation of edge-triggering. It is responsible
// for removing events from the event mask when they should be supressed, and
// for supressing future events. Events are unsupressed by their respective
// for removing events from the event mask when they should be suppressed, and
// for suppressing future events. Events are unsuppressed by their respective
// operations by the Dart thread on the socket---that is, where the
// *_events_enabled_ flags are set to true.
intptr_t IOHandle::ToggleEvents(intptr_t event_mask) {
@ -289,7 +289,7 @@ intptr_t IOHandle::ToggleEvents(intptr_t event_mask) {
fd_);
event_mask = event_mask & ~(1 << kOutEvent);
}
// If the kOutEvent bit is set, then supress future write events until the
// If the kOutEvent bit is set, then suppress future write events until the
// Dart thread writes.
if ((event_mask & (1 << kOutEvent)) != 0) {
LOG_INFO(
@ -331,7 +331,7 @@ intptr_t IOHandle::ToggleEvents(intptr_t event_mask) {
fd_);
read_events_enabled_ = false;
}
// Also supress future read events if we get a kCloseEvent. This is to
// Also suppress future read events if we get a kCloseEvent. This is to
// account for POLLIN being set by Fuchsia when the socket is read-closed.
if ((event_mask & (1 << kCloseEvent)) != 0) {
LOG_INFO(
@ -351,7 +351,7 @@ intptr_t IOHandle::ToggleEvents(intptr_t event_mask) {
fd_);
event_mask = event_mask & ~(1 << kCloseEvent);
}
// If the kCloseEvent bit is set, then supress future close events, they will
// If the kCloseEvent bit is set, then suppress future close events, they will
// be ignored by the Dart thread. See _NativeSocket.multiplex in
// socket_patch.dart.
if ((event_mask & (1 << kCloseEvent)) != 0) {

View file

@ -62,7 +62,7 @@ static void AddToEpollInstance(intptr_t epoll_fd_, DescriptorInfo* di) {
// TODO(dart:io): Verify that the dart end is handling this correctly.
// Epoll does not accept the file descriptor. It could be due to
// already closed file descriptor, or unuspported devices, such
// already closed file descriptor, or unsupported devices, such
// as /dev/null. In such case, mark the file descriptor as closed,
// so dart will handle it accordingly.
di->NotifyAllDartPorts(1 << kCloseEvent);

View file

@ -84,7 +84,7 @@ static void AddToKqueue(intptr_t kqueue_fd_, DescriptorInfo* di) {
// TODO(dart:io): Verify that the dart end is handling this correctly.
// kQueue does not accept the file descriptor. It could be due to
// already closed file descriptor, or unuspported devices, such
// already closed file descriptor, or unsupported devices, such
// as /dev/null. In such case, mark the file descriptor as closed,
// so dart will handle it accordingly.
di->NotifyAllDartPorts(1 << kCloseEvent);

View file

@ -28,13 +28,13 @@ class FDUtils {
static intptr_t AvailableBytes(intptr_t fd);
// Reads the requested number of bytes from a file descriptor. This
// function will only return on short reads if an error occours in
// function will only return on short reads if an error occurs in
// which case it returns -1 and errno is still valid. The file
// descriptor must be in blocking mode.
static ssize_t ReadFromBlocking(int fd, void* buffer, size_t count);
// Writes the requested number of bytes to a file descriptor. This
// function will only return on short writes if an error occours in
// function will only return on short writes if an error occurs in
// which case it returns -1 and errno is still valid. The file
// descriptor must be in blocking mode.
static ssize_t WriteToBlocking(int fd, const void* buffer, size_t count);

View file

@ -11,7 +11,7 @@ ClobberAndCall:
_ClobberAndCall:
#endif
/* Save link register register and thread register. Keep stack aligned to 16 bytes. */
/* Save link register and thread register. Keep stack aligned to 16 bytes. */
stp lr, x26, [sp, #-16]!
mov lr, #1
mov x26, #1

View file

@ -5309,7 +5309,7 @@ DART_EXPORT Struct16BytesMixed2 ReturnStruct16BytesMixed2(float a0,
}
// Used for testing structs and unions by value.
// Rerturn value returned in preallocated space passed by pointer on most ABIs.
// Return value returned in preallocated space passed by pointer on most ABIs.
// Is non word size on purpose, to test that structs are rounded up to word size
// on all ABIs.
DART_EXPORT Struct17BytesInt ReturnStruct17BytesInt(int64_t a0,
@ -13521,7 +13521,7 @@ DART_EXPORT intptr_t TestReturnStruct16BytesMixed2(
}
// Used for testing structs and unions by value.
// Rerturn value returned in preallocated space passed by pointer on most ABIs.
// Return value returned in preallocated space passed by pointer on most ABIs.
// Is non word size on purpose, to test that structs are rounded up to word size
// on all ABIs.
DART_EXPORT intptr_t TestReturnStruct17BytesInt(

View file

@ -49,7 +49,7 @@ ret
.type ClobberAndCall, %function
ClobberAndCall:
/* Save link register register and thread register. */
/* Save link register and thread register. */
stp lr, x26, [sp, #-16]!
mov lr, #1
mov x26, #1

View file

@ -27,7 +27,7 @@ intptr_t FileSystemWatcher::Init() {
if (id < 0 || !FDUtils::SetCloseOnExec(id)) {
return -1;
}
// Some systems dosn't support setting this as non-blocking. Since watching
// Some systems don't support setting this as non-blocking. Since watching
// internals are kept away from the user, we know it's possible to continue,
// even if setting non-blocking fails.
FDUtils::SetNonBlocking(id);

View file

@ -27,7 +27,7 @@ intptr_t FileSystemWatcher::Init() {
if (id < 0) {
return -1;
}
// Some systems dosn't support setting this as non-blocking. Since watching
// Some systems don't support setting this as non-blocking. Since watching
// internals are kept away from the user, we know it's possible to continue,
// even if setting non-blocking fails.
FDUtils::SetNonBlocking(id);

View file

@ -57,7 +57,7 @@ intptr_t FileSystemWatcher::WatchPath(intptr_t id,
DirectoryWatchHandle* handle =
new DirectoryWatchHandle(dir, list_events, recursive);
// Issue a read directly, to be sure events are tracked from now on. This is
// okay, since in Dart, we create the socket and start reading immidiately.
// okay, since in Dart, we create the socket and start reading immediately.
handle->EnsureInitialized(EventHandler::delegate());
handle->IssueRead();
return reinterpret_cast<intptr_t>(handle);

View file

@ -469,7 +469,7 @@ bool Options::ParseArguments(int argc,
skipVmOption = true;
} else if (IsOption(argv[i], "no-analytics")) {
// Just add this option even if we don't go to dartdev.
// It is irelevant for the vm.
// It is irrelevant for the vm.
dart_options->AddArgument("--no-analytics");
skipVmOption = true;
} else if (IsOption(argv[i], "serve-devtools")) {

View file

@ -99,7 +99,7 @@ class Options {
// Returns true if argument parsing succeeded. False otherwise.
static bool ParseArguments(int argc,
char** argv,
bool vm_run_app_shapshot,
bool vm_run_app_snapshot,
CommandLineOptions* vm_options,
char** script_name,
CommandLineOptions* dart_options,

View file

@ -138,7 +138,7 @@ const char* Platform::ResolveExecutablePath() {
}
}
// Couldn't find it. This causes null to be returned for
// Platform.resovledExecutable.
// Platform.resolvedExecutable.
return NULL;
}

View file

@ -122,7 +122,7 @@ void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) {
return;
}
Dart_Handle working_directory_handle = Dart_GetNativeArgument(args, 4);
// Defaults to the current working directoy.
// Defaults to the current working directory.
const char* working_directory = NULL;
if (Dart_IsString(working_directory_handle)) {
working_directory = DartUtils::GetStringValue(working_directory_handle);

View file

@ -257,7 +257,7 @@ class BufferListBase {
DEBUG_ASSERT(IsEmpty());
}
// Returns the collected data as a Uint8List. If an error occours an
// Returns the collected data as a Uint8List. If an error occurs an
// error handle is returned.
Dart_Handle GetData() {
uint8_t* buffer;

View file

@ -535,13 +535,13 @@ class ProcessStarter {
execvp(path_, const_cast<char* const*>(program_arguments_));
ReportChildError();
} else {
// Exit the intermeiate process. Avoid any atexit callbacks
// Exit the intermediate process. Avoid any atexit callbacks
// to prevent deadlocks.
_Exit(0);
}
}
} else {
// Exit the intermeiate process. Avoid any atexit callbacks
// Exit the intermediate process. Avoid any atexit callbacks
// to prevent deadlocks.
_Exit(0);
}

View file

@ -554,7 +554,7 @@ class ProcessStarter {
if (!Process::ModeIsAttached(mode_)) {
creation_flags |= DETACHED_PROCESS;
} else {
// Unless we are inherting stdio which means there is some console
// Unless we are inheriting stdio which means there is some console
// associated with the app, we want to ensure no console window pops
// up for the spawned child.
if (mode_ != kInheritStdio) {

View file

@ -133,7 +133,7 @@ void FUNCTION_NAME(SecureSocket_Destroy)(Dart_NativeArguments args) {
// There are two paths that can clean up an SSLFilter object. First,
// there is this explicit call to Destroy(), called from
// _SecureFilter.destroy() in Dart code. After a call to destroy(), the Dart
// code maintains the invariant that there will be no futher SSLFilter
// code maintains the invariant that there will be no further SSLFilter
// requests sent to the IO Service. Therefore, the internals of the SSLFilter
// are safe to deallocate, but not the SSLFilter itself, which is already
// set up to be cleaned up by the finalizer.

View file

@ -40,7 +40,7 @@ void SSLCertContext::TrustBuiltinRoots() {
return;
}
// On Android, we don't compile in the trusted root certificates. Insead,
// On Android, we don't compile in the trusted root certificates. Instead,
// we use the directory of trusted certificates already present on the device.
// This saves ~240KB from the size of the binary. This has the drawback that
// SSL_do_handshake will synchronously hit the filesystem looking for root

View file

@ -85,7 +85,7 @@ static bool AddCertificatesFromNamedSystemStore(const wchar_t* name,
BIO_new_mem_buf(const_cast<unsigned char*>(cert_context->pbCertEncoded),
cert_context->cbCertEncoded);
// `root_cert` has to be initialized to NULL, otherwise, it will be
// considerred as an existing X509 and cause segmentation fault.
// considered as an existing X509 and cause segmentation fault.
X509* root_cert = NULL;
if (d2i_X509_bio(root_cert_bio, &root_cert) == NULL) {
if (SSL_LOG_STATUS) {

View file

@ -384,7 +384,7 @@ void FUNCTION_NAME(Socket_CreateConnect)(Dart_NativeArguments args) {
}
// This function will abort if sourceAddr is a Unix domain socket.
// The family ("sa_family") of the socket address is infered from the length
// The family ("sa_family") of the socket address is inferred from the length
// of the address. Unix domain sockets addresses are the bytes of their file
// system path so they have variable length. They cannot, therefore, be
// differentiated from other address types in this function.
@ -772,7 +772,7 @@ void FUNCTION_NAME(Socket_SendMessage)(Dart_NativeArguments args) {
intptr_t offset = DartUtils::GetNativeIntptrArgument(args, 2);
intptr_t length = DartUtils::GetNativeIntptrArgument(args, 3);
// List of triples <level, type, data> aranged to minimize dart api use in
// List of triples <level, type, data> arranged to minimize dart api use in
// native methods.
Dart_Handle control_message_list_dart =
ThrowIfError(Dart_GetNativeArgument(args, 4));

View file

@ -200,8 +200,8 @@ SocketAddress* SocketBase::GetRemotePeer(intptr_t fd, intptr_t* port) {
if (NO_RETRY_EXPECTED(getpeername(fd, &raw.addr, &size))) {
return NULL;
}
// sockaddr_un contains sa_family_t sun_familty and char[] sun_path.
// If size is the size of sa_familty_t, this is an unnamed socket and
// sockaddr_un contains sa_family_t sun_family and char[] sun_path.
// If size is the size of sa_family_t, this is an unnamed socket and
// sun_path contains garbage.
if (size == sizeof(sa_family_t)) {
*port = 0;

View file

@ -42,7 +42,7 @@ class Thread {
typedef void (*ThreadStartFunction)(uword parameter);
// Start a thread running the specified function. Returns 0 if the
// thread started successfuly and a system specific error code if
// thread started successfully and a system specific error code if
// the thread failed to start.
static int Start(const char* name,
ThreadStartFunction function,

View file

@ -15,5 +15,5 @@ See https://developers.google.com/web/tools/chrome-devtools/memory-problems/heap
## Examining a profile programmatically
A Dart library to parse the snapshot profile format is provided in `pkg/vm/lib/v8_snaphsot_profile.dart`.
A Dart library to parse the snapshot profile format is provided in `pkg/vm/lib/v8_snapshot_profile.dart`.
The `dart2js_info` package has some useful code for calculating retainers and other graph statistics.

View file

@ -6258,7 +6258,7 @@ Definition* PhiInstr::Canonicalize(FlowGraph* flow_graph) {
// If we are replacing a Phi which has redefinitions as all of its inputs
// then to maintain the redefinition chain we are going to insert a
// redefinition. If any input is *not* a redefinition that means that
// whatever properties were infered for a Phi also hold on a path
// whatever properties were inferred for a Phi also hold on a path
// that does not pass through any redefinitions so there is no need
// to redefine this value.
auto zone = flow_graph->zone();

View file

@ -41,7 +41,7 @@ class SpeculativeInliningPolicy {
}
bool IsAllowedForInlining(intptr_t call_deopt_id) const {
// If we are not supressing, we always enable optimistic inlining.
// If we are not suppressing, we always enable optimistic inlining.
if (!enable_suppression_) {
return true;
}
@ -80,7 +80,7 @@ class SpeculativeInliningPolicy {
return false;
}
// Whether we enable supressing inlining at specific deopt-ids.
// Whether we enable suppressing inlining at specific deopt-ids.
const bool enable_suppression_;
// After we reach [remaining_] number of deopt-ids in [inlining_suppressions_]

View file

@ -183,7 +183,7 @@ void CallSpecializer::SpecializePolymorphicInstanceCall(
const intptr_t receiver_cid = call->Receiver()->Type()->ToCid();
if (receiver_cid == kDynamicCid) {
return; // No information about receiver was infered.
return; // No information about receiver was inferred.
}
const ICData& ic_data = *call->ic_data();

View file

@ -42,7 +42,7 @@ class Range {
intptr_t Length() const { return end_exclusive_ - start_; }
// Returs true iff number is in this range.
// Returns true iff number is in this range.
bool Contains(intptr_t number) const {
return start_ <= number && number < end_exclusive_;
}

View file

@ -199,7 +199,7 @@ class OSThread : public BaseThread {
typedef void (*ThreadDestructor)(void* parameter);
// Start a thread running the specified function. Returns 0 if the
// thread started successfuly and a system specific error code if
// thread started successfully and a system specific error code if
// the thread failed to start.
static int Start(const char* name,
ThreadStartFunction function,

View file

@ -565,7 +565,7 @@ void Trace::PerformDeferredActions(RegExpMacroAssembler* assembler,
}
// SET_REGISTER is currently only used for newly introduced loop
// counters. They can have a significant previous value if they
// occour in a loop. TODO(lrn): Propagate this information, so we
// occur in a loop. TODO(lrn): Propagate this information, so we
// can set undo_action to ACTION_IGNORE if we know there is no
// value to restore.
undo_action = ACTION_RESTORE;

View file

@ -141,7 +141,7 @@ class BacktrackStack {
// bugs which cause application to leak memory and eventually OOM.
// See https://github.com/dart-lang/sdk/issues/38820 and
// https://github.com/flutter/flutter/issues/29007 for examples.
// So intead we directly ask OS to provide us memory.
// So instead we directly ask OS to provide us memory.
if (memory_ == nullptr) {
const bool executable = false;
const bool compressed = false;

View file

@ -22,7 +22,7 @@ uintptr_t SignalHandler::GetProgramCounter(const mcontext_t& mcontext) {
#elif defined(HOST_ARCH_ARM64)
pc = static_cast<uintptr_t>(mcontext->__ss.__pc);
#else
#error Unsuported architecture.
#error Unsupported architecture.
#endif // HOST_ARCH_...
return pc;
@ -40,7 +40,7 @@ uintptr_t SignalHandler::GetFramePointer(const mcontext_t& mcontext) {
#elif defined(HOST_ARCH_ARM64)
fp = static_cast<uintptr_t>(mcontext->__ss.__fp);
#else
#error Unsuported architecture.
#error Unsupported architecture.
#endif // HOST_ARCH_...
return fp;

View file

@ -239,7 +239,7 @@ abstract class Uri {
///
/// The `path` component is set from the [unencodedPath]
/// argument. The path passed must not be encoded as this constructor
/// encodes the path. Only `/` is recognized as path separtor.
/// encodes the path. Only `/` is recognized as path separator.
/// If omitted, the path defaults to being empty.
///
/// The `query` component is set from the optional [queryParameters]

View file

@ -293,7 +293,7 @@ void main() {
// Stored Function typed getter
method = someClass.jsFunctionFieldGetter;
// We lose safety after calling a getter that returns a function, which takes
// a function as an argument. Since this can be modeled with a method, isntead
// a function as an argument. Since this can be modeled with a method, instead
// of a getter returning a function, we don't expect this is a pattern likely
// to show up in real code.
//Expect.throws(() {

View file

@ -237,7 +237,7 @@ void main() {
// Stored Function typed getter
method = someClass.jsFunctionFieldGetter;
// We lose safety after calling a getter that returns a function, which takes
// a function as an argument. Since this can be modeled with a method, isntead
// a function as an argument. Since this can be modeled with a method, instead
// of a getter returning a function, we don't expect this is a pattern likely
// to show up in real code.
//Expect.throws(() {

View file

@ -8906,7 +8906,7 @@ Struct17BytesInt returnStruct17BytesIntCalculateResult() {
return result;
}
/// Rerturn value returned in preallocated space passed by pointer on most ABIs.
/// Return value returned in preallocated space passed by pointer on most ABIs.
/// Is non word size on purpose, to test that structs are rounded up to word size
/// on all ABIs.
Struct17BytesInt returnStruct17BytesInt(int a0, int a1, int a2) {

View file

@ -447,7 +447,7 @@ final returnStruct17BytesIntLeaf = ffiTestFunctions.lookupFunction<
Struct17BytesInt Function(
int, int, int)>("ReturnStruct17BytesInt", isLeaf: true);
/// Rerturn value returned in preallocated space passed by pointer on most ABIs.
/// Return value returned in preallocated space passed by pointer on most ABIs.
/// Is non word size on purpose, to test that structs are rounded up to word size
/// on all ABIs.
void testReturnStruct17BytesIntLeaf() {

View file

@ -441,7 +441,7 @@ final returnStruct17BytesInt = ffiTestFunctions.lookupFunction<
Struct17BytesInt Function(Int64, Int64, Int8),
Struct17BytesInt Function(int, int, int)>("ReturnStruct17BytesInt");
/// Rerturn value returned in preallocated space passed by pointer on most ABIs.
/// Return value returned in preallocated space passed by pointer on most ABIs.
/// Is non word size on purpose, to test that structs are rounded up to word size
/// on all ABIs.
void testReturnStruct17BytesInt() {

View file

@ -475,7 +475,7 @@ Return value split over FP and integer register in x64."""),
Return value split over FP and integer register in x64.
The integer register contains half float half int."""),
FunctionType(struct17bytesInt.memberTypes, struct17bytesInt, """
Rerturn value returned in preallocated space passed by pointer on most ABIs.
Return value returned in preallocated space passed by pointer on most ABIs.
Is non word size on purpose, to test that structs are rounded up to word size
on all ABIs."""),
FunctionType(struct19bytesInt.memberTypes, struct19bytesInt, """

View file

@ -9232,7 +9232,7 @@ Struct17BytesInt returnStruct17BytesIntCalculateResult() {
return result;
}
/// Rerturn value returned in preallocated space passed by pointer on most ABIs.
/// Return value returned in preallocated space passed by pointer on most ABIs.
/// Is non word size on purpose, to test that structs are rounded up to word size
/// on all ABIs.
Struct17BytesInt returnStruct17BytesInt(int a0, int a1, int a2) {

View file

@ -449,7 +449,7 @@ final returnStruct17BytesIntLeaf = ffiTestFunctions.lookupFunction<
Struct17BytesInt Function(
int, int, int)>("ReturnStruct17BytesInt", isLeaf: true);
/// Rerturn value returned in preallocated space passed by pointer on most ABIs.
/// Return value returned in preallocated space passed by pointer on most ABIs.
/// Is non word size on purpose, to test that structs are rounded up to word size
/// on all ABIs.
void testReturnStruct17BytesIntLeaf() {

View file

@ -443,7 +443,7 @@ final returnStruct17BytesInt = ffiTestFunctions.lookupFunction<
Struct17BytesInt Function(Int64, Int64, Int8),
Struct17BytesInt Function(int, int, int)>("ReturnStruct17BytesInt");
/// Rerturn value returned in preallocated space passed by pointer on most ABIs.
/// Return value returned in preallocated space passed by pointer on most ABIs.
/// Is non word size on purpose, to test that structs are rounded up to word size
/// on all ABIs.
void testReturnStruct17BytesInt() {

View file

@ -19,7 +19,7 @@ AVAILABLE_ARCHS = utils.ARCH_FAMILY.keys()
GN = os.path.join(DART_ROOT, 'buildtools', 'gn')
# Environment variables for default settings.
DART_USE_TOOLCHAIN = "DART_USE_TOOLCHAIN" # Use instread of --toolchain-prefix
DART_USE_TOOLCHAIN = "DART_USE_TOOLCHAIN" # Use instead of --toolchain-prefix
DART_USE_SYSROOT = "DART_USE_SYSROOT" # Use instead of --target-sysroot
DART_USE_CRASHPAD = "DART_USE_CRASHPAD" # Use instead of --use-crashpad
# use instead of --platform-sdk