Lines Matching refs:v8
10 #include "include/v8-callbacks.h"
11 #include "include/v8-date.h"
12 #include "include/v8-debug.h"
13 #include "include/v8-embedder-heap.h"
14 #include "include/v8-local-handle.h"
15 #include "include/v8-memory-span.h"
16 #include "include/v8-promise.h"
17 #include "include/v8-script.h"
18 #include "include/v8-util.h"
28 namespace v8 {
79 * in v8::String for private members, including fields, methods,
83 * while accessors are returned as v8::debug::AccessorPair. Missing components
94 * Forwards to v8::Object::CreationContext, but with special handling for
163 v8::Local<v8::debug::Script> script;
165 v8::Local<v8::String> message;
172 * `v8::debug::Script`, which can be a `v8::String`, in
193 * Native wrapper around v8::internal::Script object.
197 v8::Isolate* GetIsolate() const;
218 v8::debug::Location GetSourceLocation(int offset) const;
219 bool SetScriptSource(v8::Local<v8::String> newSource, bool preview,
221 bool SetBreakpoint(v8::Local<v8::String> condition, debug::Location* location,
263 virtual void ScriptCompiled(v8::Local<Script> script, bool is_live_edited,
268 v8::Local<v8::Context> paused_context,
272 v8::Local<v8::Context> paused_context,
274 virtual void ExceptionThrown(v8::Local<v8::Context> paused_context,
275 v8::Local<v8::Value> exception,
276 v8::Local<v8::Value> promise, bool is_uncaught,
278 virtual bool IsFunctionBlackboxed(v8::Local<debug::Script> script,
283 virtual bool ShouldBeSkipped(v8::Local<v8::debug::Script> script, int line,
308 v8::Local<debug::Script> script);
310 int EstimatedValueSize(Isolate* isolate, v8::Local<v8::Value> value);
319 V8_EXPORT_PRIVATE v8::Local<v8::Message> CreateMessageFromException(
320 Isolate* isolate, v8::Local<v8::Value> error);
323 * Native wrapper around v8::internal::JSGeneratorObject object.
327 v8::MaybeLocal<debug::Script> Script();
328 v8::Local<v8::Function> Function();
332 static v8::Local<debug::GeneratorObject> Cast(v8::Local<v8::Value> value);
362 friend class v8::debug::Coverage::FunctionData;
385 friend class v8::debug::Coverage::ScriptData;
402 friend class v8::debug::Coverage;
444 friend class v8::debug::TypeProfile::ScriptData;
461 friend class v8::debug::TypeProfile;
481 v8::Isolate* isolate, v8::Local<v8::Function> func);
483 v8::Isolate* isolate, v8::Local<v8::Object> generator);
506 virtual v8::Local<v8::Object> GetObject() = 0;
507 virtual v8::Local<v8::Value> GetFunctionDebugName() = 0;
513 virtual bool SetVariableValue(v8::Local<v8::String> name,
514 v8::Local<v8::Value> value) = 0;
530 virtual v8::MaybeLocal<v8::Value> GetReceiver() const = 0;
531 virtual v8::Local<v8::Value> GetReturnValue() const = 0;
532 virtual v8::Local<v8::String> GetFunctionDebugName() const = 0;
533 virtual v8::Local<v8::debug::Script> GetScript() const = 0;
535 virtual v8::Local<v8::Function> GetFunction() const = 0;
538 virtual v8::MaybeLocal<v8::Value> Evaluate(v8::Local<v8::String> source,
545 virtual bool Filter(v8::Local<v8::Object> object) = 0;
548 void QueryObjects(v8::Local<v8::Context> context,
550 v8::PersistentValueVector<v8::Object>* objects);
552 void GlobalLexicalScopeNames(v8::Local<v8::Context> context,
553 v8::PersistentValueVector<v8::String>* names);
555 void SetReturnValue(v8::Isolate* isolate, v8::Local<v8::Value> value);
563 int64_t GetNextRandomInt64(v8::Isolate* isolate);
576 V8_EXPORT_PRIVATE v8::MaybeLocal<v8::Value> EvaluateGlobal(
577 v8::Isolate* isolate, v8::Local<v8::String> source, EvaluateGlobalMode mode,
580 V8_EXPORT_PRIVATE v8::MaybeLocal<v8::Value> EvaluateGlobalForTesting(
581 v8::Isolate* isolate, v8::Local<v8::Script> function,
582 v8::debug::EvaluateGlobalMode mode, bool repl);
584 int GetDebuggingId(v8::Local<v8::Function> function);
586 bool SetFunctionBreakpoint(v8::Local<v8::Function> function,
587 v8::Local<v8::String> condition, BreakpointId* id);
589 v8::Platform* GetCurrentPlatform();
592 v8::Isolate* isolate,
593 v8::EmbedderHeapTracer::EmbedderStackState embedder_stack_state);
597 explicit PostponeInterruptsScope(v8::Isolate* isolate);
606 explicit DisableBreakScope(v8::Isolate* isolate);
613 class EphemeronTable : public v8::Object {
616 V8_EXPORT_PRIVATE V8_WARN_UNUSED_RESULT v8::MaybeLocal<v8::Value> Get(
617 v8::Isolate* isolate, v8::Local<v8::Value> key);
618 V8_EXPORT_PRIVATE V8_WARN_UNUSED_RESULT v8::Local<EphemeronTable> Set(
619 v8::Isolate* isolate, v8::Local<v8::Value> key,
620 v8::Local<v8::Value> value);
622 V8_EXPORT_PRIVATE static Local<EphemeronTable> New(v8::Isolate* isolate);
632 class V8_EXPORT_PRIVATE AccessorPair : public v8::Value {
635 v8::Local<v8::Value> getter();
636 v8::Local<v8::Value> setter();
638 static bool IsAccessorPair(v8::Local<v8::Value> obj);
639 V8_INLINE static AccessorPair* Cast(v8::Value* obj);
642 static void CheckCast(v8::Value* obj);
652 v8::Local<v8::Value> value;
653 v8::Local<v8::Value> get;
654 v8::Local<v8::Value> set;
662 v8::Local<v8::Context> context, v8::Local<v8::Object> object,
672 virtual v8::Local<v8::Name> name() const = 0;
685 class V8_EXPORT_PRIVATE WasmValueObject : public v8::Object {
688 static bool IsWasmValueObject(v8::Local<v8::Value> obj);
689 static WasmValueObject* Cast(v8::Value* value) {
696 v8::Local<v8::String> type() const;
699 static void CheckCast(v8::Value* obj);
703 AccessorPair* AccessorPair::Cast(v8::Value* value) {
715 } // namespace v8