Skip to content

Commit 50b94ef

Browse files
jsorefCommit Queue
authored and
Commit Queue
committed
Spelling runtime bin
TEST=build VM Closes: #50862 GitOrigin-RevId: ae54b37 Change-Id: I459fda0439a1cd368f488a70d84ee6bb915e60bb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/277761 Commit-Queue: Martin Kustermann <[email protected]> Reviewed-by: Daco Harkes <[email protected]> Reviewed-by: Martin Kustermann <[email protected]>
1 parent 6664304 commit 50b94ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+67
-67
lines changed

pkg/compiler/lib/src/ir/util.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RecordShape recordShapeOfRecordType(ir.RecordType node) {
5757
}
5858

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

pkg/dartdev/lib/src/commands/run.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ class RunCommand extends DartdevCommand {
170170
hide: !verbose,
171171
negatable: false,
172172
help: 'When the VM service is told to bind to a particular port, '
173-
'fallback to 0 if it fails to bind instread of failing to '
173+
'fallback to 0 if it fails to bind instead of failing to '
174174
'start.',
175175
);
176176
}

pkg/dartdev/test/commands/language_server_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void defineLanguageServerTests() {
102102
Future<String> _readLspMessage(Stream<List<int>> stream) {
103103
// Headers are complete if there are 2x '\r\n\'. The '\r' is part of the LSP
104104
// spec for headers and included on all platforms, not just Windows.
105-
const lspHeaderBodySeperator = '\r\n\r\n';
105+
const lspHeaderBodySeparator = '\r\n\r\n';
106106
final contentLengthRegExp = RegExp(r'Content-Length: (\d+)\r\n');
107107

108108
final completer = Completer<String>();
@@ -119,8 +119,8 @@ Future<String> _readLspMessage(Stream<List<int>> stream) {
119119
// To know if we have a complete message, we need to check we have the
120120
// headers, extract the content-length, then check we have that many
121121
// bytes in the body.
122-
if (bufferString.contains(lspHeaderBodySeperator)) {
123-
final parts = bufferString.split(lspHeaderBodySeperator);
122+
if (bufferString.contains(lspHeaderBodySeparator)) {
123+
final parts = bufferString.split(lspHeaderBodySeparator);
124124
final headers = parts[0];
125125
final body = parts[1];
126126
final length =

runtime/bin/dartutils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class DartUtils {
153153
static bool IsHttpSchemeURL(const char* url_name);
154154
static const char* RemoveScheme(const char* url);
155155

156-
// Retuns directory name including the last path separtor.
156+
// Returns directory name including the last path separator.
157157
//
158158
// The return value must be `free`d by the caller.
159159
static char* DirName(const char* url);

runtime/bin/directory_android.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
177177
// A symbolic link can potentially point to an anon_inode. For
178178
// example, an epoll file descriptor will have a symbolic link whose
179179
// content is the string anon_inode:[eventpoll]. In this case, the
180-
// target doesn't belong to any regular file catogory.
180+
// target doesn't belong to any regular file category.
181181
return kListLink;
182182
}
183183
if (S_ISDIR(entry_info.st_mode)) {

runtime/bin/directory_fuchsia.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
183183
// A symbolic link can potentially point to an anon_inode. For
184184
// example, an epoll file descriptor will have a symbolic link whose
185185
// content is the string anon_inode:[eventpoll]. In this case, the
186-
// target doesn't belong to any regular file catogory.
186+
// target doesn't belong to any regular file category.
187187
return kListLink;
188188
}
189189
if (S_ISDIR(entry_info.st_mode)) {
@@ -207,7 +207,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
207207
return kListLink;
208208
} else {
209209
// Regular files, character devices, block devices, fifos, sockets and
210-
// unknown types are all considerred as files.
210+
// unknown types are all considered as files.
211211
return kListFile;
212212
}
213213
}

runtime/bin/directory_linux.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
177177
// A symbolic link can potentially point to an anon_inode. For
178178
// example, an epoll file descriptor will have a symbolic link whose
179179
// content is the string anon_inode:[eventpoll]. In this case, the
180-
// target doesn't belong to any regular file catogory.
180+
// target doesn't belong to any regular file category.
181181
return kListLink;
182182
}
183183
if (S_ISDIR(entry_info.st_mode)) {

runtime/bin/directory_macos.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ ListType DirectoryListingEntry::Next(DirectoryListing* listing) {
164164
// A symbolic link can potentially point to an anon_inode. For
165165
// example, an epoll file descriptor will have a symbolic link whose
166166
// content is the string anon_inode:[eventpoll]. In this case, the
167-
// target doesn't belong to any regular file catogory.
167+
// target doesn't belong to any regular file category.
168168
return kListLink;
169169
}
170170
if (S_ISDIR(entry_info.st_mode)) {

runtime/bin/directory_win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ static bool DeleteRecursively(PathBuffer* path) {
328328
SetLastError(last_error);
329329
return false;
330330
}
331-
// All content deleted succesfully, try to delete directory.
331+
// All content deleted successfully, try to delete directory.
332332
prefixed_path.Reset(path_length -
333333
1); // Drop the "\" from the end of the path.
334334
return RemoveDirectoryW(prefixed_path.AsStringW()) != 0;

runtime/bin/eventhandler_android.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void AddToEpollInstance(intptr_t epoll_fd_, DescriptorInfo* di) {
6868
// TODO(dart:io): Verify that the dart end is handling this correctly.
6969

7070
// Epoll does not accept the file descriptor. It could be due to
71-
// already closed file descriptor, or unuspported devices, such
71+
// already closed file descriptor, or unsupported devices, such
7272
// as /dev/null. In such case, mark the file descriptor as closed,
7373
// so dart will handle it accordingly.
7474
di->NotifyAllDartPorts(1 << kCloseEvent);

runtime/bin/eventhandler_fuchsia.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ uint32_t IOHandle::WaitEnd(zx_signals_t observed) {
274274
}
275275

276276
// This function controls the simulation of edge-triggering. It is responsible
277-
// for removing events from the event mask when they should be supressed, and
278-
// for supressing future events. Events are unsupressed by their respective
277+
// for removing events from the event mask when they should be suppressed, and
278+
// for suppressing future events. Events are unsuppressed by their respective
279279
// operations by the Dart thread on the socket---that is, where the
280280
// *_events_enabled_ flags are set to true.
281281
intptr_t IOHandle::ToggleEvents(intptr_t event_mask) {
@@ -289,7 +289,7 @@ intptr_t IOHandle::ToggleEvents(intptr_t event_mask) {
289289
fd_);
290290
event_mask = event_mask & ~(1 << kOutEvent);
291291
}
292-
// If the kOutEvent bit is set, then supress future write events until the
292+
// If the kOutEvent bit is set, then suppress future write events until the
293293
// Dart thread writes.
294294
if ((event_mask & (1 << kOutEvent)) != 0) {
295295
LOG_INFO(
@@ -331,7 +331,7 @@ intptr_t IOHandle::ToggleEvents(intptr_t event_mask) {
331331
fd_);
332332
read_events_enabled_ = false;
333333
}
334-
// Also supress future read events if we get a kCloseEvent. This is to
334+
// Also suppress future read events if we get a kCloseEvent. This is to
335335
// account for POLLIN being set by Fuchsia when the socket is read-closed.
336336
if ((event_mask & (1 << kCloseEvent)) != 0) {
337337
LOG_INFO(
@@ -351,7 +351,7 @@ intptr_t IOHandle::ToggleEvents(intptr_t event_mask) {
351351
fd_);
352352
event_mask = event_mask & ~(1 << kCloseEvent);
353353
}
354-
// If the kCloseEvent bit is set, then supress future close events, they will
354+
// If the kCloseEvent bit is set, then suppress future close events, they will
355355
// be ignored by the Dart thread. See _NativeSocket.multiplex in
356356
// socket_patch.dart.
357357
if ((event_mask & (1 << kCloseEvent)) != 0) {

runtime/bin/eventhandler_linux.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static void AddToEpollInstance(intptr_t epoll_fd_, DescriptorInfo* di) {
6262
// TODO(dart:io): Verify that the dart end is handling this correctly.
6363

6464
// Epoll does not accept the file descriptor. It could be due to
65-
// already closed file descriptor, or unuspported devices, such
65+
// already closed file descriptor, or unsupported devices, such
6666
// as /dev/null. In such case, mark the file descriptor as closed,
6767
// so dart will handle it accordingly.
6868
di->NotifyAllDartPorts(1 << kCloseEvent);

runtime/bin/eventhandler_macos.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static void AddToKqueue(intptr_t kqueue_fd_, DescriptorInfo* di) {
8484
// TODO(dart:io): Verify that the dart end is handling this correctly.
8585

8686
// kQueue does not accept the file descriptor. It could be due to
87-
// already closed file descriptor, or unuspported devices, such
87+
// already closed file descriptor, or unsupported devices, such
8888
// as /dev/null. In such case, mark the file descriptor as closed,
8989
// so dart will handle it accordingly.
9090
di->NotifyAllDartPorts(1 << kCloseEvent);

runtime/bin/fdutils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class FDUtils {
2828
static intptr_t AvailableBytes(intptr_t fd);
2929

3030
// Reads the requested number of bytes from a file descriptor. This
31-
// function will only return on short reads if an error occours in
31+
// function will only return on short reads if an error occurs in
3232
// which case it returns -1 and errno is still valid. The file
3333
// descriptor must be in blocking mode.
3434
static ssize_t ReadFromBlocking(int fd, void* buffer, size_t count);
3535

3636
// Writes the requested number of bytes to a file descriptor. This
37-
// function will only return on short writes if an error occours in
37+
// function will only return on short writes if an error occurs in
3838
// which case it returns -1 and errno is still valid. The file
3939
// descriptor must be in blocking mode.
4040
static ssize_t WriteToBlocking(int fd, const void* buffer, size_t count);

runtime/bin/ffi_test/clobber_arm64.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ClobberAndCall:
1111
_ClobberAndCall:
1212
#endif
1313

14-
/* Save link register register and thread register. Keep stack aligned to 16 bytes. */
14+
/* Save link register and thread register. Keep stack aligned to 16 bytes. */
1515
stp lr, x26, [sp, #-16]!
1616
mov lr, #1
1717
mov x26, #1

runtime/bin/ffi_test/ffi_test_functions_generated.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5309,7 +5309,7 @@ DART_EXPORT Struct16BytesMixed2 ReturnStruct16BytesMixed2(float a0,
53095309
}
53105310

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

1352313523
// Used for testing structs and unions by value.
13524-
// Rerturn value returned in preallocated space passed by pointer on most ABIs.
13524+
// Return value returned in preallocated space passed by pointer on most ABIs.
1352513525
// Is non word size on purpose, to test that structs are rounded up to word size
1352613526
// on all ABIs.
1352713527
DART_EXPORT intptr_t TestReturnStruct17BytesInt(

runtime/bin/ffi_test/ffi_test_functions_helpers.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ret
4949
.type ClobberAndCall, %function
5050
ClobberAndCall:
5151

52-
/* Save link register register and thread register. */
52+
/* Save link register and thread register. */
5353
stp lr, x26, [sp, #-16]!
5454
mov lr, #1
5555
mov x26, #1

runtime/bin/file_system_watcher_android.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ intptr_t FileSystemWatcher::Init() {
2727
if (id < 0 || !FDUtils::SetCloseOnExec(id)) {
2828
return -1;
2929
}
30-
// Some systems dosn't support setting this as non-blocking. Since watching
30+
// Some systems don't support setting this as non-blocking. Since watching
3131
// internals are kept away from the user, we know it's possible to continue,
3232
// even if setting non-blocking fails.
3333
FDUtils::SetNonBlocking(id);

runtime/bin/file_system_watcher_linux.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ intptr_t FileSystemWatcher::Init() {
2727
if (id < 0) {
2828
return -1;
2929
}
30-
// Some systems dosn't support setting this as non-blocking. Since watching
30+
// Some systems don't support setting this as non-blocking. Since watching
3131
// internals are kept away from the user, we know it's possible to continue,
3232
// even if setting non-blocking fails.
3333
FDUtils::SetNonBlocking(id);

runtime/bin/file_system_watcher_win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ intptr_t FileSystemWatcher::WatchPath(intptr_t id,
5757
DirectoryWatchHandle* handle =
5858
new DirectoryWatchHandle(dir, list_events, recursive);
5959
// Issue a read directly, to be sure events are tracked from now on. This is
60-
// okay, since in Dart, we create the socket and start reading immidiately.
60+
// okay, since in Dart, we create the socket and start reading immediately.
6161
handle->EnsureInitialized(EventHandler::delegate());
6262
handle->IssueRead();
6363
return reinterpret_cast<intptr_t>(handle);

runtime/bin/main_options.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ bool Options::ParseArguments(int argc,
469469
skipVmOption = true;
470470
} else if (IsOption(argv[i], "no-analytics")) {
471471
// Just add this option even if we don't go to dartdev.
472-
// It is irelevant for the vm.
472+
// It is irrelevant for the vm.
473473
dart_options->AddArgument("--no-analytics");
474474
skipVmOption = true;
475475
} else if (IsOption(argv[i], "serve-devtools")) {

runtime/bin/main_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class Options {
9999
// Returns true if argument parsing succeeded. False otherwise.
100100
static bool ParseArguments(int argc,
101101
char** argv,
102-
bool vm_run_app_shapshot,
102+
bool vm_run_app_snapshot,
103103
CommandLineOptions* vm_options,
104104
char** script_name,
105105
CommandLineOptions* dart_options,

runtime/bin/platform_fuchsia.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ const char* Platform::ResolveExecutablePath() {
138138
}
139139
}
140140
// Couldn't find it. This causes null to be returned for
141-
// Platform.resovledExecutable.
141+
// Platform.resolvedExecutable.
142142
return NULL;
143143
}
144144

runtime/bin/process.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void FUNCTION_NAME(Process_Start)(Dart_NativeArguments args) {
122122
return;
123123
}
124124
Dart_Handle working_directory_handle = Dart_GetNativeArgument(args, 4);
125-
// Defaults to the current working directoy.
125+
// Defaults to the current working directory.
126126
const char* working_directory = NULL;
127127
if (Dart_IsString(working_directory_handle)) {
128128
working_directory = DartUtils::GetStringValue(working_directory_handle);

runtime/bin/process.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class BufferListBase {
257257
DEBUG_ASSERT(IsEmpty());
258258
}
259259

260-
// Returns the collected data as a Uint8List. If an error occours an
260+
// Returns the collected data as a Uint8List. If an error occurs an
261261
// error handle is returned.
262262
Dart_Handle GetData() {
263263
uint8_t* buffer;

runtime/bin/process_macos.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,13 +535,13 @@ class ProcessStarter {
535535
execvp(path_, const_cast<char* const*>(program_arguments_));
536536
ReportChildError();
537537
} else {
538-
// Exit the intermeiate process. Avoid any atexit callbacks
538+
// Exit the intermediate process. Avoid any atexit callbacks
539539
// to prevent deadlocks.
540540
_Exit(0);
541541
}
542542
}
543543
} else {
544-
// Exit the intermeiate process. Avoid any atexit callbacks
544+
// Exit the intermediate process. Avoid any atexit callbacks
545545
// to prevent deadlocks.
546546
_Exit(0);
547547
}

runtime/bin/process_win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ class ProcessStarter {
554554
if (!Process::ModeIsAttached(mode_)) {
555555
creation_flags |= DETACHED_PROCESS;
556556
} else {
557-
// Unless we are inherting stdio which means there is some console
557+
// Unless we are inheriting stdio which means there is some console
558558
// associated with the app, we want to ensure no console window pops
559559
// up for the spawned child.
560560
if (mode_ != kInheritStdio) {

runtime/bin/secure_socket_filter.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void FUNCTION_NAME(SecureSocket_Destroy)(Dart_NativeArguments args) {
133133
// There are two paths that can clean up an SSLFilter object. First,
134134
// there is this explicit call to Destroy(), called from
135135
// _SecureFilter.destroy() in Dart code. After a call to destroy(), the Dart
136-
// code maintains the invariant that there will be no futher SSLFilter
136+
// code maintains the invariant that there will be no further SSLFilter
137137
// requests sent to the IO Service. Therefore, the internals of the SSLFilter
138138
// are safe to deallocate, but not the SSLFilter itself, which is already
139139
// set up to be cleaned up by the finalizer.

runtime/bin/security_context_android.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void SSLCertContext::TrustBuiltinRoots() {
4040
return;
4141
}
4242

43-
// On Android, we don't compile in the trusted root certificates. Insead,
43+
// On Android, we don't compile in the trusted root certificates. Instead,
4444
// we use the directory of trusted certificates already present on the device.
4545
// This saves ~240KB from the size of the binary. This has the drawback that
4646
// SSL_do_handshake will synchronously hit the filesystem looking for root

runtime/bin/security_context_win.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ static bool AddCertificatesFromNamedSystemStore(const wchar_t* name,
8585
BIO_new_mem_buf(const_cast<unsigned char*>(cert_context->pbCertEncoded),
8686
cert_context->cbCertEncoded);
8787
// `root_cert` has to be initialized to NULL, otherwise, it will be
88-
// considerred as an existing X509 and cause segmentation fault.
88+
// considered as an existing X509 and cause segmentation fault.
8989
X509* root_cert = NULL;
9090
if (d2i_X509_bio(root_cert_bio, &root_cert) == NULL) {
9191
if (SSL_LOG_STATUS) {

runtime/bin/socket.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ void FUNCTION_NAME(Socket_CreateConnect)(Dart_NativeArguments args) {
384384
}
385385

386386
// This function will abort if sourceAddr is a Unix domain socket.
387-
// The family ("sa_family") of the socket address is infered from the length
387+
// The family ("sa_family") of the socket address is inferred from the length
388388
// of the address. Unix domain sockets addresses are the bytes of their file
389389
// system path so they have variable length. They cannot, therefore, be
390390
// differentiated from other address types in this function.
@@ -772,7 +772,7 @@ void FUNCTION_NAME(Socket_SendMessage)(Dart_NativeArguments args) {
772772
intptr_t offset = DartUtils::GetNativeIntptrArgument(args, 2);
773773
intptr_t length = DartUtils::GetNativeIntptrArgument(args, 3);
774774

775-
// List of triples <level, type, data> aranged to minimize dart api use in
775+
// List of triples <level, type, data> arranged to minimize dart api use in
776776
// native methods.
777777
Dart_Handle control_message_list_dart =
778778
ThrowIfError(Dart_GetNativeArgument(args, 4));

runtime/bin/socket_base_android.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ SocketAddress* SocketBase::GetRemotePeer(intptr_t fd, intptr_t* port) {
200200
if (NO_RETRY_EXPECTED(getpeername(fd, &raw.addr, &size))) {
201201
return NULL;
202202
}
203-
// sockaddr_un contains sa_family_t sun_familty and char[] sun_path.
204-
// If size is the size of sa_familty_t, this is an unnamed socket and
203+
// sockaddr_un contains sa_family_t sun_family and char[] sun_path.
204+
// If size is the size of sa_family_t, this is an unnamed socket and
205205
// sun_path contains garbage.
206206
if (size == sizeof(sa_family_t)) {
207207
*port = 0;

runtime/bin/thread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Thread {
4242
typedef void (*ThreadStartFunction)(uword parameter);
4343

4444
// Start a thread running the specified function. Returns 0 if the
45-
// thread started successfuly and a system specific error code if
45+
// thread started successfully and a system specific error code if
4646
// the thread failed to start.
4747
static int Start(const char* name,
4848
ThreadStartFunction function,

runtime/docs/snapshot_profiling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ See https://developers.google.com/web/tools/chrome-devtools/memory-problems/heap
1515

1616
## Examining a profile programmatically
1717

18-
A Dart library to parse the snapshot profile format is provided in `pkg/vm/lib/v8_snaphsot_profile.dart`.
18+
A Dart library to parse the snapshot profile format is provided in `pkg/vm/lib/v8_snapshot_profile.dart`.
1919
The `dart2js_info` package has some useful code for calculating retainers and other graph statistics.

runtime/vm/compiler/backend/il.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6258,7 +6258,7 @@ Definition* PhiInstr::Canonicalize(FlowGraph* flow_graph) {
62586258
// If we are replacing a Phi which has redefinitions as all of its inputs
62596259
// then to maintain the redefinition chain we are going to insert a
62606260
// redefinition. If any input is *not* a redefinition that means that
6261-
// whatever properties were infered for a Phi also hold on a path
6261+
// whatever properties were inferred for a Phi also hold on a path
62626262
// that does not pass through any redefinitions so there is no need
62636263
// to redefine this value.
62646264
auto zone = flow_graph->zone();

0 commit comments

Comments
 (0)