Beispiel #1
0
 BackgroundCompileRequest(STATE, CompiledMethod* cm, Object* mm, bool is_block=false)
   : method_(state)
   , mm_(state)
   , is_block_(is_block)
 {
   method_.set(cm);
   mm_.set(mm);
 }
Beispiel #2
0
 void clear_exception(bool all = false) {
     if(raise_reason_ == cNone) return;
     if(!all && raise_reason_ != cException) {
         std::cout << "WARNING: clearing non exception raise reason!\n";
     }
     raise_value_.set(Qnil);
     raise_reason_ = cNone;
     destination_scope_.set(Qnil);
 }
Beispiel #3
0
 Exception* interrupted_exception() {
   return interrupted_exception_.get();
 }
Beispiel #4
0
 CompiledMethod* method() {
   return method_.get();
 }
Beispiel #5
0
 BlockEnvironment* block_env() {
   return try_as<BlockEnvironment>(mm_.get());
 }
Beispiel #6
0
 VMMethod* vmmethod() {
   return method_->backend_method();
 }
Beispiel #7
0
 Object* loader() {
   return loader_->get();
 }
Beispiel #8
0
 Class* self_class() {
   return self_class_.get();
 }
Beispiel #9
0
 virtual void call(Object* obj) {
   chan->send(state, obj);
 }
Beispiel #10
0
 virtual Object* object() {
   return chan.get();
 }
Beispiel #11
0
 Object* throw_dest() {
   return throw_dest_.get();
 }
Beispiel #12
0
 VariableScope* destination_scope() {
   return destination_scope_.get();
 }
Beispiel #13
0
 Object* raise_value() {
   return raise_value_.get();
 }
Beispiel #14
0
 void set_self_class(Class* cls) {
   self_class_.set((Object*)cls);
 }
Beispiel #15
0
 void clear_interrupted_exception() {
   interrupted_exception_.set(cNil);
 }
Beispiel #16
0
 CompiledCode* method() {
   return method_.get();
 }
Beispiel #17
0
 void set_loader(Object* loader) {
   loader_->set(loader);
 }