Example #1
0
 SharkValue* xstack(int slot) {
   SharkValue *value = current_state()->stack(slot);
   assert(value != NULL, "shouldn't be");
   assert(value->is_one_word() ||
          (slot > 0 &&
           current_state()->stack(slot - 1) == NULL), "should be");
   return value;
 }
Example #2
0
 SharkValue* local(int index) {
   SharkValue *value = current_state()->local(index);
   assert(value != NULL, "shouldn't be");
   assert(value->is_one_word() ||
          (index + 1 < max_locals() &&
           current_state()->local(index + 1) == NULL), "should be");
   return value;
 }