Lines Matching refs:current_state
78 SharkState* current_state() {
85 void set_current_state(SharkState* current_state) {
86 _current_state = current_state;
92 SharkValue *value = current_state()->local(index);
96 current_state()->local(index + 1) == NULL), "should be");
101 current_state()->set_local(index, value);
103 current_state()->set_local(index + 1, NULL);
109 current_state()->push(value);
112 return current_state()->pop();
115 SharkValue *value = current_state()->stack(slot);
119 current_state()->stack(slot - 1) == NULL), "should be");
123 return current_state()->stack_depth();
135 int size = current_state()->stack(0) == NULL ? 2 : 1;