5#ifndef INCLUDE_V8_CONTAINER_H_
6#define INCLUDE_V8_CONTAINER_H_
40#ifdef V8_ENABLE_CHECKS
43 return static_cast<Array*
>(value);
48 static void CheckCast(
Value* obj);
80#ifdef V8_ENABLE_CHECKS
83 return static_cast<Map*
>(value);
88 static void CheckCast(
Value* obj);
116#ifdef V8_ENABLE_CHECKS
119 return static_cast<Set*
>(value);
124 static void CheckCast(
Value* obj);
static Local< Array > New(Isolate *isolate, Local< Value > *elements, size_t length)
static Local< Array > New(Isolate *isolate, int length=0)
static V8_INLINE Array * Cast(Value *value)
Local< Array > AsArray() const
V8_WARN_UNUSED_RESULT Maybe< bool > Has(Local< Context > context, Local< Value > key)
V8_WARN_UNUSED_RESULT Maybe< bool > Delete(Local< Context > context, Local< Value > key)
static V8_INLINE Map * Cast(Value *value)
V8_WARN_UNUSED_RESULT MaybeLocal< Value > Get(Local< Context > context, Local< Value > key)
static Local< Map > New(Isolate *isolate)
V8_WARN_UNUSED_RESULT MaybeLocal< Map > Set(Local< Context > context, Local< Value > key, Local< Value > value)
Local< Array > AsArray() const
static Local< Set > New(Isolate *isolate)
V8_WARN_UNUSED_RESULT Maybe< bool > Has(Local< Context > context, Local< Value > key)
V8_WARN_UNUSED_RESULT Maybe< bool > Delete(Local< Context > context, Local< Value > key)
static V8_INLINE Set * Cast(Value *value)
V8_WARN_UNUSED_RESULT MaybeLocal< Set > Add(Local< Context > context, Local< Value > key)
#define V8_WARN_UNUSED_RESULT