v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
ignition-statistics-extension.cc
Go to the documentation of this file.
1// Copyright 2016 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
8#include "src/api/api-inl.h"
9#include "src/base/logging.h"
13
14namespace v8 {
15namespace internal {
16
26
28 "native function getIgnitionDispatchCounters();";
29
33 info.GetReturnValue().Set(
34 Utils::ToLocal(reinterpret_cast<Isolate*>(info.GetIsolate())
35 ->interpreter()
37}
38
39} // namespace internal
40} // namespace v8
static Local< FunctionTemplate > New(Isolate *isolate, FunctionCallback callback=nullptr, Local< Value > data=Local< Value >(), Local< Signature > signature=Local< Signature >(), int length=0, ConstructorBehavior behavior=ConstructorBehavior::kAllow, SideEffectType side_effect_type=SideEffectType::kHasSideEffect, const CFunction *c_function=nullptr, uint16_t instance_type=0, uint16_t allowed_receiver_instance_type_range_start=0, uint16_t allowed_receiver_instance_type_range_end=0)
Definition api.cc:1101
v8::Local< v8::FunctionTemplate > GetNativeFunctionTemplate(v8::Isolate *isolate, v8::Local< v8::String > name) override
static void GetIgnitionDispatchCounters(const v8::FunctionCallbackInfo< v8::Value > &info)
interpreter::Interpreter * interpreter() const
Definition isolate.h:1968
V8_EXPORT_PRIVATE DirectHandle< JSObject > GetDispatchCountersObject()
bool V8_EXPORT ValidateCallbackInfo(const FunctionCallbackInfo< void > &info)
Definition api.cc:12301
#define DCHECK(condition)
Definition logging.h:482
#define DCHECK_EQ(v1, v2)
Definition logging.h:485