2020-05-12 11:09:49 +00:00
|
|
|
// Copyright 2020 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef INCLUDE_CPPGC_COMMON_H_
|
|
|
|
#define INCLUDE_CPPGC_COMMON_H_
|
|
|
|
|
|
|
|
// TODO(chromium:1056170): Remove dependency on v8.
|
|
|
|
#include "v8config.h" // NOLINT(build/include_directory)
|
|
|
|
|
|
|
|
namespace cppgc {
|
|
|
|
|
2021-01-26 09:21:21 +00:00
|
|
|
/**
|
|
|
|
* Indicator for the stack state of the embedder.
|
|
|
|
*/
|
2020-05-12 11:09:49 +00:00
|
|
|
enum class EmbedderStackState {
|
2021-01-26 09:21:21 +00:00
|
|
|
/**
|
|
|
|
* Stack may contain interesting heap pointers.
|
|
|
|
*/
|
2020-05-12 11:09:49 +00:00
|
|
|
kMayContainHeapPointers,
|
2021-01-26 09:21:21 +00:00
|
|
|
/**
|
|
|
|
* Stack does not contain any interesting heap pointers.
|
|
|
|
*/
|
2020-05-12 11:09:49 +00:00
|
|
|
kNoHeapPointers,
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace cppgc
|
|
|
|
|
|
|
|
#endif // INCLUDE_CPPGC_COMMON_H_
|