Sha256: 35e5ae84570b58e58ff59064944cd78d53f9e39def8adc89c49b08aa8428b66f

Contents?: true

Size: 1.29 KB

Versions: 12

Compression:

Stored size: 1.29 KB

Contents

// Copyright 2021 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_V8_DATA_H_
#define INCLUDE_V8_DATA_H_

#include "v8-local-handle.h"  // NOLINT(build/include_directory)
#include "v8config.h"         // NOLINT(build/include_directory)

namespace v8 {

class Context;

/**
 * The superclass of objects that can reside on V8's heap.
 */
class V8_EXPORT Data {
 public:
  /**
   * Returns true if this data is a |v8::Value|.
   */
  bool IsValue() const;

  /**
   * Returns true if this data is a |v8::Module|.
   */
  bool IsModule() const;

  /**
   * Returns true if this data is a |v8::Private|.
   */
  bool IsPrivate() const;

  /**
   * Returns true if this data is a |v8::ObjectTemplate|.
   */
  bool IsObjectTemplate() const;

  /**
   * Returns true if this data is a |v8::FunctionTemplate|.
   */
  bool IsFunctionTemplate() const;

  /**
   * Returns true if this data is a |v8::Context|.
   */
  bool IsContext() const;

 private:
  Data();
};

/**
 * A fixed-sized array with elements of type Data.
 */
class V8_EXPORT FixedArray : public Data {
 public:
  int Length() const;
  Local<Data> Get(Local<Context> context, int i) const;
};

}  // namespace v8

#endif  // INCLUDE_V8_DATA_H_

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
libv8-node-17.9.1.1-x86_64-linux vendor/v8/include/v8-data.h
libv8-node-17.9.1.1-x86_64-linux-musl vendor/v8/include/v8-data.h
libv8-node-17.9.1.1-x86_64-darwin vendor/v8/include/v8-data.h
libv8-node-17.9.1.1-arm64-darwin vendor/v8/include/v8-data.h
libv8-node-17.9.1.1-aarch64-linux vendor/v8/include/v8-data.h
libv8-node-17.9.1.1-aarch64-linux-musl vendor/v8/include/v8-data.h
libv8-node-17.9.1.0-aarch64-linux-musl vendor/v8/include/v8-data.h
libv8-node-17.9.1.0-aarch64-linux vendor/v8/include/v8-data.h
libv8-node-17.9.1.0-arm64-darwin vendor/v8/include/v8-data.h
libv8-node-17.9.1.0-x86_64-linux-musl vendor/v8/include/v8-data.h
libv8-node-17.9.1.0-x86_64-linux vendor/v8/include/v8-data.h
libv8-node-17.9.1.0-x86_64-darwin vendor/v8/include/v8-data.h