public
Description: Rubinius, the Ruby VM
Homepage: http://rubini.us
Clone URL: git://github.com/evanphx/rubinius.git
rubinius / vm / builtin_executable.hpp
feb91b43 » evanphx 2008-05-07 Tons of stuff (too much pro... 1 #ifndef RBX_BUILTIN_EXECUTABLE_HPP
2 #define RBX_BUILTIN_EXECUTABLE_HPP
3
4 namespace rubinius {
5
6 class MemoryPointer;
7
8 class Executable : public BuiltinType {
9 public:
10 const static size_t fields = 4;
11 const static object_type type = ExecutableType;
12
13 OBJECT __ivars__; // slot
14 SYMBOL primitive; // slot
15 FIXNUM serial; // slot
16 MemoryPointer* compiled; // slot readonly
17
18 class Info : public TypeInfo {
19 public:
20 Info(object_type type) : TypeInfo(type) { }
21 virtual void set_field(STATE, OBJECT target, size_t index, OBJECT val);
22 virtual OBJECT get_field(STATE, OBJECT target, size_t index);
23 };
24 };
25
26 }
27
28
29 #endif