HELLO·Android
系统源代码
IT资讯
技术文章
我的收藏
注册
登录
-
我收藏的文章
创建代码块
我的代码块
我的账号
Android 10
|
10.0.0_r6
下载
查看原文件
收藏
根目录
external
v8
src
debug
debug-interface.h
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_DEBUG_DEBUG_INTERFACE_H_ #define V8_DEBUG_DEBUG_INTERFACE_H_ #include "include/v8-inspector.h" #include "include/v8-util.h" #include "include/v8.h" #include "src/debug/interface-types.h" #include "src/globals.h" namespace v8 { namespace internal { struct CoverageBlock; struct CoverageFunction; struct CoverageScript; struct TypeProfileEntry; struct TypeProfileScript; class Coverage; class PostponeInterruptsScope; class Script; class TypeProfile; } // namespace internal namespace debug { void SetContextId(Local
context, int id); int GetContextId(Local
context); void SetInspector(Isolate* isolate, v8_inspector::V8Inspector*); v8_inspector::V8Inspector* GetInspector(Isolate* isolate); // Schedule a debugger break to happen when function is called inside given // isolate. void SetBreakOnNextFunctionCall(Isolate* isolate); // Remove scheduled debugger break in given isolate if it has not // happened yet. void ClearBreakOnNextFunctionCall(Isolate* isolate); /** * Returns array of internal properties specific to the value type. Result has * the following format: [
,
,...,
,
]. Result array * will be allocated in the current context. */ MaybeLocal
GetInternalProperties(Isolate* isolate, Local
value); enum ExceptionBreakState { NoBreakOnException = 0, BreakOnUncaughtException = 1, BreakOnAnyException = 2 }; /** * Defines if VM will pause on exceptions or not. * If BreakOnAnyExceptions is set then VM will pause on caught and uncaught * exception, if BreakOnUncaughtException is set then VM will pause only on * uncaught exception, otherwise VM won't stop on any exception. */ void ChangeBreakOnException(Isolate* isolate, ExceptionBreakState state); void RemoveBreakpoint(Isolate* isolate, BreakpointId id); void SetBreakPointsActive(Isolate* isolate, bool is_active); enum StepAction { StepOut = 0, // Step out of the current function. StepNext = 1, // Step to the next statement in the current function. StepIn = 2 // Step into new functions invoked or the next statement // in the current function. }; void PrepareStep(Isolate* isolate, StepAction action); void ClearStepping(Isolate* isolate); void BreakRightNow(Isolate* isolate); bool AllFramesOnStackAreBlackboxed(Isolate* isolate); class Script; struct LiveEditResult { enum Status { OK, COMPILE_ERROR, BLOCKED_BY_RUNNING_GENERATOR, BLOCKED_BY_FUNCTION_ABOVE_BREAK_FRAME, BLOCKED_BY_FUNCTION_BELOW_NON_DROPPABLE_FRAME, BLOCKED_BY_ACTIVE_FUNCTION, BLOCKED_BY_NEW_TARGET_IN_RESTART_FRAME, FRAME_RESTART_IS_NOT_SUPPORTED }; Status status = OK; bool stack_changed = false; // Available only for OK. v8::Local
script; // Fields below are available only for COMPILE_ERROR. v8::Local
message; int line_number = -1; int column_number = -1; }; /** * Native wrapper around v8::internal::Script object. */ class V8_EXPORT_PRIVATE Script { public: v8::Isolate* GetIsolate() const; ScriptOriginOptions OriginOptions() const; bool WasCompiled() const; bool IsEmbedded() const; int Id() const; int LineOffset() const; int ColumnOffset() const; std::vector
LineEnds() const; MaybeLocal
Name() const; MaybeLocal
SourceURL() const; MaybeLocal
SourceMappingURL() const; Maybe
ContextId() const; MaybeLocal
Source() const; bool IsWasm() const; bool IsModule() const; bool GetPossibleBreakpoints( const debug::Location& start, const debug::Location& end, bool restrict_to_function, std::vector
* locations) const; int GetSourceOffset(const debug::Location& location) const; v8::debug::Location GetSourceLocation(int offset) const; bool SetScriptSource(v8::Local
newSource, bool preview, LiveEditResult* result) const; bool SetBreakpoint(v8::Local
condition, debug::Location* location, BreakpointId* id) const; }; // Specialization for wasm Scripts. class WasmScript : public Script { public: static WasmScript* Cast(Script* script); int NumFunctions() const; int NumImportedFunctions() const; std::pair
GetFunctionRange(int function_index) const; debug::WasmDisassembly DisassembleFunction(int function_index) const; uint32_t GetFunctionHash(int function_index); }; void GetLoadedScripts(Isolate* isolate, PersistentValueVector
登录后可以享受更多权益
您还没有登录,登录后您可以:
收藏Android系统代码
收藏喜欢的文章
多个平台共享账号
去登录
首次使用?从这里
注册