ELinks 0.19.1
performance.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "elinks.h"
#include "js/ecmascript.h"
#include "js/quickjs.h"
#include "js/quickjs/performance.h"
#include "osdep/osdep.h"
Include dependency graph for performance.c:

Macros

#define countof(x)

Functions

static JSValue js_performance_get_property_timeOrigin (JSContext *ctx, JSValueConst this_val)
static void js_performance_finalizer (JSRuntime *rt, JSValue val)
static JSValue js_performance_now (JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv)
JSValue getPerformance (JSContext *ctx)

Variables

JSClassID js_performance_class_id
static JSClassDef js_performance_class
static const JSCFunctionListEntry js_performance_proto_funcs []

Macro Definition Documentation

◆ countof

#define countof ( x)
Value:
(sizeof(x) / sizeof((x)[0]))

Function Documentation

◆ getPerformance()

JSValue getPerformance ( JSContext * ctx)

◆ js_performance_finalizer()

void js_performance_finalizer ( JSRuntime * rt,
JSValue val )
static

◆ js_performance_get_property_timeOrigin()

JSValue js_performance_get_property_timeOrigin ( JSContext * ctx,
JSValueConst this_val )
static

◆ js_performance_now()

JSValue js_performance_now ( JSContext * ctx,
JSValueConst this_val,
int argc,
JSValueConst * argv )
static

Variable Documentation

◆ js_performance_class

JSClassDef js_performance_class
static
Initial value:
= {
"Performance",
}
static void js_performance_finalizer(JSRuntime *rt, JSValue val)
Definition performance.c:25

◆ js_performance_class_id

JSClassID js_performance_class_id

◆ js_performance_proto_funcs

const JSCFunctionListEntry js_performance_proto_funcs[]
static
Initial value:
= {
JS_CGETSET_DEF("timeOrigin", js_performance_get_property_timeOrigin, NULL),
}
#define NULL
Definition explodename.c:35
static JSValue js_performance_get_property_timeOrigin(JSContext *ctx, JSValueConst this_val)
Definition performance.c:57