| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
| Field Summary | |
HTMLElement
|
debugDom
Debug DOM |
Array
|
endBlocks
END blocks |
Object
|
globalVars
Global Variables |
<static> object
|
VM_CALL_ARGS_BLOCKARG_BIT
|
<static> object
|
VM_CALL_ARGS_SPLAT_BIT
|
<static> object
|
VM_CALL_FCALL_BIT
|
<static> object
|
VM_CALL_VCALL_BIT
|
| Constructor Summary | |
HotRuby()
HotRuby |
|
| Method Summary | |
|
compileAndRun(url, Ruby)
Send the source to server and run. |
Array
|
createRubyArray(ary)
JavaScript Array -> Ruby Array |
Object
|
createRubyHash(ary)
JavaScript Array -> Ruby Hash |
Object
|
createRubyProc(opcode, sf)
opcode -> Ruby Proc |
|
createRubyRange(last, first, exclude_end)
Creates Ruby Range |
String
|
createRubyString(str)
JavaScript String -> Ruby String |
String
|
getClassName(obj)
Returns class name from object. |
<private>
|
getConstant(sf, classObj, constName)
Get the constant |
|
invokeMethod(recver, methodName, args, sf, type, invokeSuper)
Invoke the method |
<private>
|
mainLoop(opcode, sf)
Main loop for opcodes. |
|
printDebug(str)
Print to debug dom. |
|
run(opcode)
Run the script. |
|
runFromScriptTag(url)
Search and run. |
<private>
|
runOpcode(opcode, classObj, methodName, self, args, parentSF, isProc, cbaseObj)
Run the opcode. |
<private>
|
setConstant(sf, classObj, constName, constValue)
Set the Constant |
| Field Detail |
HTMLElement debugDom
Array endBlocks
Object globalVars
<static> object VM_CALL_ARGS_BLOCKARG_BIT
<static> object VM_CALL_ARGS_SPLAT_BIT
<static> object VM_CALL_FCALL_BIT
<static> object VM_CALL_VCALL_BIT
| Constructor Detail |
HotRuby()
| Method Detail |
compileAndRun(url, Ruby)
String url - Ruby compiler url
src Ruby - source
Array createRubyArray(ary)
Array ary
Array
Object createRubyHash(ary)
Array ary
Object
Object createRubyProc(opcode, sf)
Array opcode
HotRuby.StackFrame sf
Object Proc
createRubyRange(last, first, exclude_end)
Number last
Number first
boolean exclude_end
String createRubyString(str)
String str
String
String getClassName(obj)
obj
String
<private> getConstant(sf, classObj, constName)
HotRuby.StackFrame sf
Object classObj
String constName
constant value
invokeMethod(recver, methodName, args, sf, type, invokeSuper)
Object recver
String methodName
Array args
HotRuby.StackFrame sf
Number type - VM_CALL_ARGS_SPLAT_BIT, ...
boolean invokeSuper
<private> mainLoop(opcode, sf)
Array opcode
HotRuby.StackFrame sf
printDebug(str)
String str
run(opcode)
Array opcode
runFromScriptTag(url)
String url - Ruby compiler url
<private> runOpcode(opcode, classObj, methodName, self, args, parentSF, isProc, cbaseObj)
Array opcode
Object classObj
String methodName
Object self
Array args
HotRuby.StackFrame parentSF - Parent StackFrame
boolean isProc
Object cbaseObj
<private> setConstant(sf, classObj, constName, constValue)
HotRuby.StackFrame sf
Object classObj
String constName
constValue