2021-10-07 01:06:21 +02:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2021, Andreas Kling <andreas@ladybird.org>
|
2021-10-07 01:06:21 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2021-10-10 15:44:22 +02:00
|
|
|
#include <AK/Types.h>
|
2021-10-07 01:06:21 +02:00
|
|
|
#include <LibJS/Forward.h>
|
|
|
|
|
|
|
|
|
|
namespace JS {
|
|
|
|
|
|
|
|
|
|
struct EnvironmentCoordinate {
|
2022-11-21 18:01:22 +01:00
|
|
|
u32 hops { invalid_marker };
|
|
|
|
|
u32 index { invalid_marker };
|
2022-11-10 20:55:03 +01:00
|
|
|
|
2022-11-21 18:01:22 +01:00
|
|
|
bool is_valid() const { return hops != invalid_marker && index != invalid_marker; }
|
|
|
|
|
|
|
|
|
|
static constexpr u32 invalid_marker = 0xfffffffe;
|
2021-10-07 01:06:21 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|