Home | History | Annotate | Download | only in include

Lines Matching refs:V8_INLINE

218   V8_INLINE Local() : val_(0) {}
220 V8_INLINE Local(Local<S> that)
233 V8_INLINE bool IsEmpty() const { return val_ == 0; }
238 V8_INLINE void Clear() { val_ = 0; }
240 V8_INLINE T* operator->() const { return val_; }
242 V8_INLINE T* operator*() const { return val_; }
251 V8_INLINE bool operator==(const Local<S>& that) const {
259 template <class S> V8_INLINE bool operator==(
275 V8_INLINE bool operator!=(const Local<S>& that) const {
279 template <class S> V8_INLINE bool operator!=(
284 template <class S> V8_INLINE static Local<T> Cast(Local<S> that) {
294 V8_INLINE Local<S> As() const {
303 V8_INLINE static Local<T> New(Isolate* isolate, Local<T> that);
304 V8_INLINE static Local<T> New(Isolate* isolate,
334 explicit V8_INLINE Local(T* that) : val_(that) {}
335 V8_INLINE static Local<T> New(Isolate* isolate, T* that);
360 V8_INLINE MaybeLocal() : val_(nullptr) {}
362 V8_INLINE MaybeLocal(Local<S> that)
367 V8_INLINE bool IsEmpty() const { return val_ == nullptr; }
370 V8_WARN_UNUSED_RESULT V8_INLINE bool ToLocal(Local<S>* out) const {
376 V8_INLINE Local<T> ToLocalChecked();
379 V8_INLINE Local<S> FromMaybe(Local<S> default_value) const {
391 V8_INLINE Eternal() : index_(kInitialValue) { }
393 V8_INLINE Eternal(Isolate* isolate, Local<S> handle) : index_(kInitialValue) {
397 V8_INLINE Local<T> Get(Isolate* isolate);
398 V8_INLINE bool IsEmpty() { return index_ == kInitialValue; }
399 template<class S> V8_INLINE void Set(Isolate* isolate, Local<S> handle);
424 V8_INLINE Isolate* GetIsolate() const { return isolate_; }
425 V8_INLINE T* GetParameter() const { return parameter_; }
426 V8_INLINE void* GetInternalField(int index) const;
428 V8_INLINE V8_DEPRECATED("use indexed version",
432 V8_INLINE V8_DEPRECATED("use indexed version",
484 V8_INLINE void Reset();
490 V8_INLINE void Reset(Isolate* isolate, const Local<S>& other);
497 V8_INLINE void Reset(Isolate* isolate, const PersistentBase<S>& other);
499 V8_INLINE bool IsEmpty() const { return val_ == NULL; }
500 V8_INLINE void Empty() { val_ = 0; }
502 V8_INLINE Local<T> Get(Isolate* isolate) const {
507 V8_INLINE bool operator==(const PersistentBase<S>& that) const {
516 V8_INLINE bool operator==(const Local<S>& that) const {
525 V8_INLINE bool operator!=(const PersistentBase<S>& that) const {
530 V8_INLINE bool operator!=(const Local<S>& that) const {
542 V8_INLINE void SetWeak(P* parameter,
553 V8_INLINE void SetWeak();
556 V8_INLINE P* ClearWeak();
559 V8_INLINE void ClearWeak() { ClearWeak<void>(); }
566 V8_INLINE void RegisterExternalReference(Isolate* isolate) const;
574 V8_INLINE void MarkIndependent();
581 V8_INLINE void MarkActive();
583 V8_INLINE bool IsIndependent() const;
586 V8_INLINE bool IsNearDeath() const;
589 V8_INLINE bool IsWeak() const;
595 V8_INLINE void SetWrapperClassId(uint16_t class_id);
601 V8_INLINE uint16_t WrapperClassId() const;
620 explicit V8_INLINE PersistentBase(T* val) : val_(val) {}
621 V8_INLINE static T* New(Isolate* isolate, T* that);
639 V8_INLINE static void Copy(const Persistent<S, M>& source,
644 template<class O> V8_INLINE static void Uncompilable() {
659 static V8_INLINE void Copy(const Persistent<S, M>& source,
679 V8_INLINE Persistent() : PersistentBase<T>(0) { }
686 V8_INLINE Persistent(Isolate* isolate, Local<S> that)
696 V8_INLINE Persistent(Isolate* isolate, const Persistent<S, M2>& that)
706 V8_INLINE Persistent(const Persistent& that) : PersistentBase<T>(0) {
710 V8_INLINE Persistent(const Persistent<S, M2>& that) : PersistentBase<T>(0) {
713 V8_INLINE Persistent& operator=(const Persistent& that) { // NOLINT
718 V8_INLINE Persistent& operator=(const Persistent<S, M2>& that) { // NOLINT
727 V8_INLINE ~Persistent() {
733 V8_INLINE static Persistent<T>& Cast(const Persistent<S>& that) { // NOLINT
744 V8_INLINE Persistent<S>& As() const { // NOLINT
755 explicit V8_INLINE Persistent(T* that) : PersistentBase<T>(that) {}
756 V8_INLINE T* operator*() const { return this->val_; }
758 V8_INLINE void Copy(const Persistent<S, M2>& that);
773 V8_INLINE Global() : PersistentBase<T>(nullptr) {}
780 V8_INLINE Global(Isolate* isolate, Local<S> that)
790 V8_INLINE Global(Isolate* isolate, const PersistentBase<S>& that)
797 V8_INLINE Global(Global&& other) : PersistentBase<T>(other.val_) { // NOLINT
800 V8_INLINE ~Global() { this->Reset(); }
805 V8_INLINE Global& operator=(Global<S>&& rhs) { // NOLINT
830 V8_INLINE T* operator*() const { return this->val_; }
864 V8_INLINE Isolate* GetIsolate() const {
874 V8_INLINE HandleScope() {}
907 V8_INLINE ~EscapableHandleScope() {}
914 V8_INLINE Local<T> Escape(Local<T> value) {
964 V8_INLINE ScriptOriginOptions(bool is_shared_cross_origin = false,
970 V8_INLINE ScriptOriginOptions(int flags)
998 V8_INLINE ScriptOrigin(
1009 V8_INLINE Local<Value> ResourceName() const;
1010 V8_INLINE Local<Integer> ResourceLineOffset() const;
1011 V8_INLINE Local<Integer> ResourceColumnOffset() const;
1015 V8_INLINE Local<Integer> ScriptID() const;
1016 V8_INLINE Local<Value> SourceMapUrl() const;
1017 V8_INLINE ScriptOriginOptions Options() const { return options_; }
1187 V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
1189 V8_INLINE Source(Local<String> source_string,
1191 V8_INLINE ~Source();
1196 V8_INLINE const CachedData* GetCachedData() const;
1198 V8_INLINE const ScriptOriginOptions& GetResourceOptions() const;
1943 V8_INLINE bool IsUndefined() const;
1949 V8_INLINE bool IsNull() const;
1956 V8_INLINE bool IsNullOrUndefined() const;
1977 V8_INLINE bool IsString() const;
2267 template <class T> V8_INLINE static Value* Cast(T* value);
2272 V8_INLINE bool QuickIsUndefined() const;
2273 V8_INLINE bool QuickIsNull() const;
2274 V8_INLINE bool QuickIsNullOrUndefined() const;
2275 V8_INLINE bool QuickIsString() const;
2295 V8_INLINE static Boolean* Cast(v8::Value* obj);
2296 V8_INLINE static Local<Boolean> New(Isolate* isolate, bool value);
2317 V8_INLINE static Name* Cast(Value* obj);
2418 V8_INLINE static Local<String> Empty(Isolate* isolate);
2516 V8_INLINE ExternalStringResourceBase* GetExternalStringResourceBase(
2523 V8_INLINE ExternalStringResource* GetExternalStringResource() const;
2531 V8_INLINE static String* Cast(v8::Value* obj);
2725 V8_INLINE static Symbol* Cast(Value* obj);
2768 V8_INLINE static Number* Cast(v8::Value* obj);
2783 V8_INLINE static Integer* Cast(v8::Value* obj);
2796 V8_INLINE static Int32* Cast(v8::Value* obj);
2810 V8_INLINE static Uint32* Cast(v8::Value* obj);
3144 V8_INLINE static int InternalFieldCount(
3150 V8_INLINE Local<Value> GetInternalField(int index);
3160 V8_INLINE void* GetAlignedPointerFromInternalField(int index);
3163 V8_INLINE static void* GetAlignedPointerFromInternalField(
3287 V8_INLINE static Local<Context> CreationContext(
3333 V8_INLINE static Object* Cast(Value* obj);
3366 V8_INLINE static Array* Cast(Value* obj);
3401 V8_INLINE static Map* Cast(Value* obj);
3433 V8_INLINE static Set* Cast(Value* obj);
3444 template <class S> V8_INLINE ReturnValue(const ReturnValue<S>& that)
3450 V8_INLINE V8_DEPRECATE_SOON("Use Global<> instead",
3453 V8_INLINE void Set(const Global<S>& handle);
3455 V8_INLINE void Set(const Local<S> handle);
3457 V8_INLINE void Set(bool value);
3458 V8_INLINE void Set(double i);
3459 V8_INLINE void Set(int32_t i);
3460 V8_INLINE void Set(uint32_t i);
3462 V8_INLINE void SetNull();
3463 V8_INLINE void SetUndefined();
3464 V8_INLINE void SetEmptyString();
3466 V8_INLINE Isolate* GetIsolate() const;
3470 V8_INLINE void Set(S* whatever);
3475 V8_INLINE Local<Value> Get() const;
3483 V8_INLINE void SetInternal(internal::Object* value) { *value_ = value; }
3484 V8_INLINE internal::Object* GetDefaultValue();
3485 V8_INLINE explicit ReturnValue(internal::Object** slot);
3499 V8_INLINE int Length() const;
3500 V8_INLINE Local<Value> operator[](int i) const;
3501 V8_INLINE V8_DEPRECATED("Use Data() to explicitly pass Callee instead",
3503 V8_INLINE Local<Object> This() const;
3504 V8_INLINE Local<Object> Holder() const;
3505 V8_INLINE Local<Value> NewTarget() const;
3506 V8_INLINE bool IsConstructCall() const;
3507 V8_INLINE Local<Value> Data() const;
3508 V8_INLINE Isolate* GetIsolate() const;
3509 V8_INLINE ReturnValue<T> GetReturnValue() const;
3525 V8_INLINE FunctionCallbackInfo(internal::Object** implicit_args,
3543 V8_INLINE Isolate* GetIsolate() const;
3550 V8_INLINE Local<Value> Data() const;
3593 V8_INLINE Local<Object> This() const;
3604 V8_INLINE Local<Object> Holder() const;
3614 V8_INLINE ReturnValue<T> GetReturnValue() const;
3623 V8_INLINE bool ShouldThrowOnError() const;
3640 V8_INLINE PropertyCallbackInfo(internal::Object** args) : args_(args) {}
3736 V8_INLINE static Function* Cast(Value* obj);
3783 V8_INLINE static Resolver* Cast(Value* obj);
3823 V8_INLINE static Promise* Cast(Value* obj);
3921 V8_INLINE static Proxy* Cast(Value* obj);
3945 V8_INLINE static WasmCompiledModule* Cast(Value* obj);
4105 V8_INLINE static ArrayBuffer* Cast(Value* obj);
4157 V8_INLINE static ArrayBufferView* Cast(Value* obj);
4180 V8_INLINE static TypedArray* Cast(Value* obj);
4197 V8_INLINE static Uint8Array* Cast(Value* obj);
4215 V8_INLINE static Uint8ClampedArray* Cast(Value* obj);
4231 V8_INLINE static Int8Array* Cast(Value* obj);
4248 V8_INLINE static Uint16Array* Cast(Value* obj);
4265 V8_INLINE static Int16Array* Cast(Value* obj);
4282 V8_INLINE static Uint32Array* Cast(Value* obj);
4299 V8_INLINE static Int32Array* Cast(Value* obj);
4316 V8_INLINE static Float32Array* Cast(Value* obj);
4333 V8_INLINE static Float64Array* Cast(Value* obj);
4350 V8_INLINE static DataView* Cast(Value* obj);
4447 V8_INLINE static SharedArrayBuffer* Cast(Value* obj);
4473 V8_INLINE static Date* Cast(Value* obj);
4503 V8_INLINE static NumberObject* Cast(Value* obj);
4520 V8_INLINE static BooleanObject* Cast(Value* obj);
4536 V8_INLINE static StringObject* Cast(Value* obj);
4552 V8_INLINE static SymbolObject* Cast(Value* obj);
4605 V8_INLINE static RegExp* Cast(Value* obj);
4619 V8_INLINE static External* Cast(Value* obj);
4655 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value);
5684 V8_INLINE Local<Primitive> Undefined(Isolate* isolate);
5685 V8_INLINE Local<Primitive> Null(Isolate* isolate);
5686 V8_INLINE Local<Boolean> True(Isolate* isolate);
5687 V8_INLINE Local<Boolean> False(Isolate* isolate);
5863 V8_INLINE Local<Promise> GetPromise() const { return promise_; }
5864 V8_INLINE PromiseRejectEvent GetEvent() const { return event_; }
5865 V8_INLINE Local<Value> GetValue() const { return value_; }
5868 V8_INLINE Local<StackTrace> GetStackTrace() const) {
6676 V8_INLINE void SetData(uint32_t slot, void* data);
6682 V8_INLINE void* GetData(uint32_t slot);
6688 V8_INLINE static uint32_t GetNumberOfDataSlots();
6766 V8_INLINE int64_t
7373 V8_INLINE static V8_DEPRECATED(
7381 V8_INLINE static V8_DEPRECATED(
7389 V8_INLINE static V8_DEPRECATED("Use isolate version", bool IsDead());
7437 V8_INLINE static V8_DEPRECATED(
7445 V8_INLINE static V8_DEPRECATED(
7452 V8_INLINE static V8_DEPRECATED(
7474 V8_INLINE static V8_DEPRECATED(
7497 V8_INLINE static V8_DEPRECATED(
7520 V8_INLINE static V8_DEPRECATED(
7552 V8_INLINE static V8_DEPRECATED("Use isolate version",
7565 V8_INLINE static V8_DEPRECATED(
7585 V8_INLINE static V8_DEPRECATED(
7604 V8_INLINE static V8_DEPRECATED(
7612 V8_INLINE static V8_DEPRECATED(
7620 V8_INLINE static V8_DEPRECATED(
7632 V8_INLINE static V8_DEPRECATED(
7820 V8_INLINE bool IsNothing() const { return !has_value_; }
7821 V8_INLINE bool IsJust() const { return has_value_; }
7824 V8_INLINE T ToChecked() const { return FromJust(); }
7826 V8_WARN_UNUSED_RESULT V8_INLINE bool To(T* out) const {
7832 V8_INLINE T FromJust() const {
7837 V8_INLINE T FromMaybe(const T& default_value) const {
7841 V8_INLINE bool operator==(const Maybe& other) const {
7846 V8_INLINE bool operator!=(const Maybe& other) const {
8188 V8_INLINE Local<Value> GetEmbedderData(int index);
8211 V8_INLINE void* GetAlignedPointerFromEmbedderData(int index);
8259 explicit V8_INLINE Scope(Local<Context> context) : context_(context) {
8262 V8_INLINE ~Scope() { context_->Exit(); }
8360 V8_INLINE explicit Unlocker(Isolate* isolate) { Initialize(isolate); }
8375 V8_INLINE explicit Locker(Isolate* isolate) { Initialize(isolate); }
8425 V8_INLINE internal::Object* IntToSmi(int value) {
8437 V8_INLINE static int SmiToInt(const internal::Object* value) {
8442 V8_INLINE static internal::Object* IntToSmi(int value) {
8445 V8_INLINE static bool IsValidSmi(intptr_t value) {
8466 V8_INLINE static int SmiToInt(const internal::Object* value) {
8471 V8_INLINE static internal::Object* IntToSmi(int value) {
8474 V8_INLINE static bool IsValidSmi(intptr_t value) {
8483 V8_INLINE static bool SmiValuesAre31Bits() { return kSmiValueSize == 31; }
8484 V8_INLINE static bool SmiValuesAre32Bits() { return kSmiValueSize == 32; }
8546 V8_INLINE static void CheckInitialized(v8::Isolate* isolate) {
8552 V8_INLINE static bool HasHeapObjectTag(const internal::Object* value) {
8557 V8_INLINE static int SmiValue(const internal::Object* value) {
8561 V8_INLINE static internal::Object* IntToSmi(int value) {
8565 V8_INLINE static bool IsValidSmi(intptr_t value) {
8569 V8_INLINE static int GetInstanceType(const internal::Object* obj) {
8577 V8_INLINE static int GetOddballKind(const internal::Object* obj) {
8582 V8_INLINE static bool IsExternalTwoByteString(int instance_type) {
8587 V8_INLINE static uint8_t GetNodeFlag(internal::Object** obj, int shift) {
8592 V8_INLINE static void UpdateNodeFlag(internal::Object** obj,
8599 V8_INLINE static uint8_t GetNodeState(internal::Object** obj) {
8604 V8_INLINE static void UpdateNodeState(internal::Object** obj,
8610 V8_INLINE static void SetEmbedderData(v8::Isolate* isolate,
8618 V8_INLINE static void* GetEmbedderData(const v8::Isolate* isolate,
8625 V8_INLINE static internal::Object** GetRoot(v8::Isolate* isolate,
8632 V8_INLINE static T ReadField(const internal::Object* ptr, int offset) {
8639 V8_INLINE static T ReadEmbedderData(const v8::Context* context, int index) {
8790 V8_INLINE void PersistentBase<T>::SetWeak(