V8: v8::Script Class Reference (original) (raw)
#include <[v8-script.h](v8-script%5F8h%5Fsource.html)>
| Public Member Functions | |
|---|---|
| MaybeLocal< Value > | Run (Local< Context > context) |
| MaybeLocal< Value > | Run (Local< Context > context, Local< Data > host_defined_options) |
| Local< UnboundScript > | GetUnboundScript () |
| Local< Value > | GetResourceName () |
| std::vector< int > | GetProducedCompileHints () const |
| Local< CompileHintsCollector > | GetCompileHintsCollector () const |
Public Member Functions inherited from v8::Data |
|
| bool | IsValue () const |
| bool | IsModule () const |
| bool | IsModuleRequest () const |
| bool | IsFixedArray () const |
| bool | IsPrivate () const |
| bool | IsObjectTemplate () const |
| bool | IsFunctionTemplate () const |
| bool | IsDictionaryTemplate () const |
| bool | IsContext () const |
| bool | IsCppHeapExternal () const |
A compiled JavaScript script, tied to a Context which was active when the script was compiled.
Examples
◆ Compile()
◆ GetCompileHintsCollector()
Get a compile hints collector object which we can use later for retrieving compile hints (= positions of lazy functions which were compiled and executed).
◆ GetProducedCompileHints()
| std::vector< int > v8::Script::GetProducedCompileHints | ( | ) | const |
|---|
If the script was compiled, returns the positions of lazy functions which were eventually compiled and executed.
◆ GetResourceName()
◆ GetUnboundScript()
Returns the corresponding context-unbound script.
◆ Run() [1/2]
◆ Run() [2/2]
The documentation for this class was generated from the following file:
- include/v8-script.h
Public Member Functions inherited from