Skip to content

Commit 29185f9

Browse files
committed
Merge pull request 'refactoring' (dart-lang#18) from fibers into main
Reviewed-on: http://git.local/dependencies/dart/pulls/18
2 parents 0e1392d + cbcfaa4 commit 29185f9

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

runtime/vm/compiler/stub_code_compiler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3233,7 +3233,7 @@ void StubCodeCompiler::GenerateSubtypeTestCacheSearch(
32333233
#endif
32343234

32353235
void StubCodeCompiler::GenerateCoroutineInitializeStub() {
3236-
const Register kCoroutine = CoroutineEntryABI::kCoroutineReg;
3236+
const Register kCoroutine = CoroutineInitializeABI::kCoroutineReg;
32373237

32383238
#if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_ARM64)
32393239
SPILLS_LR_TO_FRAME({});

runtime/vm/constants_x64.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,17 +388,13 @@ struct SuspendStubABI {
388388
static constexpr intptr_t kResumePcDistance = 5;
389389
};
390390

391-
struct CoroutineEntryABI {
392-
static constexpr Register kCoroutineReg = RDI;
393-
};
394-
395391
struct CoroutineInitializeABI {
396-
static constexpr Register kCoroutineReg = CoroutineEntryABI::kCoroutineReg;
392+
static constexpr Register kCoroutineReg = RDI;
397393
};
398394

399395
struct CoroutineForkABI {
400396
static constexpr Register kCallerCoroutineReg = RSI;
401-
static constexpr Register kForkedCoroutineReg = CoroutineEntryABI::kCoroutineReg;
397+
static constexpr Register kForkedCoroutineReg = RDI;
402398
};
403399

404400
struct CoroutineTransferABI {

runtime/vm/object_store.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
#include "vm/dart_entry.h"
88
#include "vm/exceptions.h"
9-
#include "vm/flags.h"
109
#include "vm/isolate.h"
1110
#include "vm/object.h"
1211
#include "vm/raw_object.h"

runtime/vm/raw_object.cc

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,7 @@ intptr_t UntaggedCoroutine::VisitCoroutinePointers(
668668
if (native_stack != 0 &&
669669
(attributes & (Coroutine::CoroutineAttributes::suspended |
670670
Coroutine::CoroutineAttributes::running)) != 0) {
671-
const uword sp = native_stack;
672-
const uword fp = *reinterpret_cast<uword*>(sp);
671+
const uword fp = *reinterpret_cast<uword*>(native_stack);
673672
StackFrameIterator frames_iterator(
674673
fp, ValidationPolicy::kDontValidateFrames, thread,
675674
StackFrameIterator::kNoCrossThreadIteration,
@@ -682,8 +681,7 @@ intptr_t UntaggedCoroutine::VisitCoroutinePointers(
682681
}
683682

684683
if ((attributes & (Coroutine::CoroutineAttributes::suspended)) != 0) {
685-
const uword sp = stack;
686-
const uword fp = *reinterpret_cast<uword*>(sp);
684+
const uword fp = *reinterpret_cast<uword*>(stack);
687685
StackFrameIterator frames_iterator(
688686
fp, ValidationPolicy::kDontValidateFrames, thread,
689687
StackFrameIterator::kNoCrossThreadIteration,

sdk/lib/isolate/isolate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ final class Isolate {
8989
///
9090
/// Some control messages require a specific capability to be passed along
9191
/// with the message (see [pauseCapability] and [terminateCapability]),
92-
/// otherwise the message is ignored by the isolate.ц
92+
/// otherwise the message is ignored by the isolate.
9393
final SendPort controlPort;
9494

9595
/// Capability granting the ability to pause the isolate.

0 commit comments

Comments
 (0)