Skip to content

Commit

Permalink
Merge pull request 'Fibers dart-lang#5' (dart-lang#4) from fibers int…
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbashir committed Sep 1, 2024
2 parents 43bf06b + f269c2b commit 81b3c13
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 16 deletions.
1 change: 0 additions & 1 deletion runtime/vm/compiler/frontend/kernel_binary_flowgraph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "vm/object_store.h"
#include "vm/resolver.h"
#include "vm/stack_frame.h"
#include "vm/token_position.h"

namespace dart {
namespace kernel {
Expand Down
1 change: 0 additions & 1 deletion runtime/vm/compiler/frontend/kernel_binary_flowgraph.h
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ class StreamingFlowGraphBuilder : public KernelReaderHelper {

// Build flow graph for '_nativeEffect'.
Fragment BuildNativeEffect();


// Build the call-site manually, to avoid doing initialization checks
// for late fields.
Expand Down
1 change: 0 additions & 1 deletion runtime/vm/compiler/stub_code_compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2402,7 +2402,6 @@ void StubCodeCompiler::GenerateResumeStub() {
__ Bind(&okay);
}
#endif

if (!FLAG_precompiled_mode) {
// Copy Code object (part of the fixed frame which is not copied below)
// and restore pool pointer.
Expand Down
19 changes: 14 additions & 5 deletions runtime/vm/isolate.h
Original file line number Diff line number Diff line change
Expand Up @@ -1624,14 +1624,23 @@ class Isolate : public BaseIsolate, public IntrusiveDListEntry<Isolate> {
VMTagCounters vm_tag_counters_;

// We use 6 list entries for each pending service extension calls.
enum {kPendingHandlerIndex = 0, kPendingMethodNameIndex, kPendingKeysIndex,
kPendingValuesIndex, kPendingReplyPortIndex, kPendingIdIndex,
kPendingEntrySize};
enum {
kPendingHandlerIndex = 0,
kPendingMethodNameIndex,
kPendingKeysIndex,
kPendingValuesIndex,
kPendingReplyPortIndex,
kPendingIdIndex,
kPendingEntrySize
};
GrowableObjectArrayPtr pending_service_extension_calls_;

// We use 2 list entries for each registered extension handler.
enum {kRegisteredNameIndex = 0, kRegisteredHandlerIndex,
kRegisteredEntrySize};
enum {
kRegisteredNameIndex = 0,
kRegisteredHandlerIndex,
kRegisteredEntrySize
};
GrowableObjectArrayPtr registered_service_extension_handlers_;

// Used to wake the isolate when it is in the pause event loop.
Expand Down
5 changes: 2 additions & 3 deletions runtime/vm/object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.

#include "vm/object.h"
#include <sys/mman.h>

#include <memory>

Expand Down Expand Up @@ -829,8 +828,8 @@ void Object::Init(IsolateGroup* isolate_group) {
sentinel_class_ = cls.ptr();

// Allocate and initialize the sentinel values.
{
*sentinel_ ^= Sentinel::New();
{
*sentinel_ ^= Sentinel::New();
}

// Allocate and initialize optimizing compiler constants.
Expand Down
3 changes: 1 addition & 2 deletions runtime/vm/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#ifndef RUNTIME_VM_OBJECT_H_
#define RUNTIME_VM_OBJECT_H_

#include "vm/tagged_pointer.h"
#if defined(SHOULD_NOT_INCLUDE_RUNTIME)
#error "Should not include runtime"
#endif
Expand Down Expand Up @@ -7040,7 +7039,7 @@ class Code : public Object {

// Layout of entries describing comments.
enum {
kPCOffsetEntry = 0, // PC offset to a comment as a Smi.
kPCOffsetEntry = 0, // PC offset to a comment as a Smi.
kCommentEntry, // Comment text as a String.
kNumberOfEntries
};
Expand Down
2 changes: 0 additions & 2 deletions runtime/vm/thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.

#include "vm/thread.h"
#include <cstddef>

#include "vm/cpu.h"
#include "vm/dart_api_state.h"
Expand All @@ -23,7 +22,6 @@
#include "vm/service.h"
#include "vm/stub_code.h"
#include "vm/symbols.h"
#include "vm/tagged_pointer.h"
#include "vm/thread_interrupter.h"
#include "vm/thread_registry.h"
#include "vm/timeline.h"
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib/list_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -590,4 +590,4 @@ void testListConstructor() {
Expect.throws(() => new List.filled(0, 42).add(4));
// Not negative.
Expect.throws(() => new List.filled(-2, 42));
}
}

0 comments on commit 81b3c13

Please sign in to comment.