[vm] Fix gcc build.

TEST=local build
Change-Id: I572aba5798a07ce5cb0cbda83d6eb3e44811ba5b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/203287
Commit-Queue: Ryan Macnak <rmacnak@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
This commit is contained in:
Ryan Macnak
2021-06-17 16:05:02 +00:00
committed by commit-bot@chromium.org
parent 72d0d9981e
commit d2e460675b
20 changed files with 519 additions and 526 deletions
+8 -7
View File
@@ -210,7 +210,7 @@ class EntryFrame : public StackFrame {
// Windows- where it is needed for the profiler. It is the responsibility of
// users of StackFrameIterator to ensure that the thread given is not running
// concurrently.
class StackFrameIterator : public ValueObject {
class StackFrameIterator {
public:
enum CrossThreadPolicy {
kNoCrossThreadIteration = 0,
@@ -219,9 +219,9 @@ class StackFrameIterator : public ValueObject {
// Iterators for iterating over all frames from the last ExitFrame to the
// first EntryFrame.
explicit StackFrameIterator(ValidationPolicy validation_policy,
Thread* thread,
CrossThreadPolicy cross_thread_policy);
StackFrameIterator(ValidationPolicy validation_policy,
Thread* thread,
CrossThreadPolicy cross_thread_policy);
StackFrameIterator(uword last_fp,
ValidationPolicy validation_policy,
Thread* thread,
@@ -236,7 +236,7 @@ class StackFrameIterator : public ValueObject {
Thread* thread,
CrossThreadPolicy cross_thread_policy);
StackFrameIterator(const StackFrameIterator& orig);
explicit StackFrameIterator(const StackFrameIterator& orig);
// Checks if a next frame exists.
bool HasNextFrame() const { return frames_.fp_ != 0; }
@@ -311,7 +311,7 @@ class StackFrameIterator : public ValueObject {
// it is only allowed on Windows- where it is needed for the profiler.
// It is the responsibility of users of DartFrameIterator to ensure that the
// isolate given is not running concurrently on another thread.
class DartFrameIterator : public ValueObject {
class DartFrameIterator {
public:
explicit DartFrameIterator(
Thread* thread,
@@ -340,7 +340,8 @@ class DartFrameIterator : public ValueObject {
thread,
cross_thread_policy) {}
DartFrameIterator(const DartFrameIterator& orig) : frames_(orig.frames_) {}
explicit DartFrameIterator(const DartFrameIterator& orig)
: frames_(orig.frames_) {}
// Get next dart frame.
StackFrame* NextFrame() {