当前位置: 首页>>代码示例>>C++>>正文


C++ VerificationType::is_check方法代码示例

本文整理汇总了C++中VerificationType::is_check方法的典型用法代码示例。如果您正苦于以下问题:C++ VerificationType::is_check方法的具体用法?C++ VerificationType::is_check怎么用?C++ VerificationType::is_check使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在VerificationType的用法示例。


在下文中一共展示了VerificationType::is_check方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: set_local

void StackMapFrame::set_local(int32_t index, VerificationType type, TRAPS) {
  assert(!type.is_check(), "Must be a real type");
  if (index >= _max_locals) {
    verifier()->verify_error(
        ErrorContext::bad_local_index(_offset, index),
        "Local variable table overflow");
    return;
  }
  // If type at index is double or long, set the next location to be unusable
  if (_locals[index].is_double() || _locals[index].is_long()) {
    assert((index + 1) < _locals_size, "Local variable table overflow");
    _locals[index + 1] = VerificationType::bogus_type();
  }
  // If type at index is double_2 or long_2, set the previous location to be unusable
  if (_locals[index].is_double2() || _locals[index].is_long2()) {
    assert(index >= 1, "Local variable table underflow");
    _locals[index - 1] = VerificationType::bogus_type();
  }
  _locals[index] = type;
  if (index >= _locals_size) {
#ifdef ASSERT
    for (int i=_locals_size; i<index; i++) {
      assert(_locals[i] == VerificationType::bogus_type(),
             "holes must be bogus type");
    }
#endif
    _locals_size = index + 1;
  }
}
开发者ID:4T-Shirt,项目名称:OpenJDK-Research,代码行数:29,代码来源:stackMapFrame.cpp

示例2: push_stack

 // Push type into stack type array.
 inline void push_stack(VerificationType type, TRAPS) {
   assert(!type.is_check(), "Must be a real type");
   if (_stack_size >= _max_stack) {
     verifier()->verify_error(
         ErrorContext::stack_overflow(_offset, this),
         "Operand stack overflow");
     return;
   }
   _stack[_stack_size++] = type;
 }
开发者ID:stkaushal,项目名称:jdk8_tl,代码行数:11,代码来源:stackMapFrame.hpp


注:本文中的VerificationType::is_check方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。