[VM] Do not use the contents of the megamorphic miss code in stack_frame
The megamorphic miss stub might not be initialized at the point in time when we access it. Fixes https://github.com/dart-lang/sdk/issues/35405 Change-Id: If20622bd4f3b14d6ece5a8de6f006d7081d6cf76 Reviewed-on: https://dart-review.googlesource.com/c/87322 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
8dd03bee13
commit
08c386a33e
@@ -165,7 +165,10 @@ class StackFrame : public ValueObject {
|
||||
bool IsBareInstructionsStubFrame() const;
|
||||
|
||||
// Frame type.
|
||||
virtual bool IsDartFrame(bool validate = true) const;
|
||||
virtual bool IsDartFrame(bool validate = true) const {
|
||||
ASSERT(!validate || IsValid());
|
||||
return !(IsEntryFrame() || IsExitFrame() || IsStubFrame());
|
||||
}
|
||||
virtual bool IsStubFrame() const;
|
||||
virtual bool IsEntryFrame() const { return false; }
|
||||
virtual bool IsExitFrame() const { return false; }
|
||||
|
||||
Reference in New Issue
Block a user