common.h 695 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
// 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 {

13 14 15
/**
 *  Indicator for the stack state of the embedder.
 */
16
enum class EmbedderStackState {
17 18 19
  /**
   * Stack may contain interesting heap pointers.
   */
20
  kMayContainHeapPointers,
21 22 23
  /**
   * Stack does not contain any interesting heap pointers.
   */
24 25 26 27 28 29
  kNoHeapPointers,
};

}  // namespace cppgc

#endif  // INCLUDE_CPPGC_COMMON_H_