Function Namespace VM
gpsee.module.ca.page.vm
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
VM()
Native module exposing deep interpreter interfaces to the JavaScript programmer.
|
| Field Attributes | Field Name and Description |
|---|---|
| <inner> |
human-readable, not-machine-parseable string describing interpreter version
|
| Method Attributes | Method Name and Description |
|---|---|
| <inner> |
dumpGCstats(filename)
Dump statistics about the garbage collector to a file.
|
| <inner> |
isCompilableUnit(args)
Determine if supplied arguments form valid JavaScript.
|
Function Namespace Detail
VM()
Native module exposing deep interpreter interfaces to the JavaScript programmer.
Methods and properties in this module are not expected to be
universally available.
Author: Wes Garland, PageMail, Inc., wes@page.ca.
Author: Wes Garland, PageMail, Inc., wes@page.ca.
Field Detail
<inner>
version
human-readable, not-machine-parseable string describing interpreter version
Method Detail
<inner>
dumpGCstats(filename)
Dump statistics about the garbage collector to a file.
- Parameters:
- filename
- Filename in which to dump human-readable statistics.
<inner>
isCompilableUnit(args)
Determine if supplied arguments form valid JavaScript.
Return false if the buffer might become a valid
JavaScript statement with the addition of more lines. Otherwise return
true. The intent is to support interactive compilation - accumulate
lines in a buffer until JS_BufferIsCompilableUnit is true, then pass it to
the compiler.
- Parameters:
- args
- One or more arguments containing code segments
- Returns:
- true if concatenation of arguments makes a valid JS compilation unit
- See:
- JS_BufferIsCompilableUnit