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


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

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


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

示例1: assert

void StackMapFrame::set_local_2(
    int32_t index, VerificationType type1, VerificationType type2, TRAPS) {
  assert(type1.is_long() || type1.is_double(), "must be long/double");
  assert(type2.is_long2() || type2.is_double2(), "must be long/double_2");
  if (index >= _max_locals - 1) {
    verifier()->verify_error(
        ErrorContext::bad_local_index(_offset, index),
        "Local variable table overflow");
    return;
  }
  // If type at index+1 is double or long, set the next location to be unusable
  if (_locals[index+1].is_double() || _locals[index+1].is_long()) {
    assert((index + 2) < _locals_size, "Local variable table overflow");
    _locals[index + 2] = 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] = type1;
  _locals[index+1] = type2;
  if (index >= _locals_size - 1) {
#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 + 2;
  }
}
开发者ID:4T-Shirt,项目名称:OpenJDK-Research,代码行数:32,代码来源:stackMapFrame.cpp

示例2: assert

 inline void push_stack_2(
     VerificationType type1, VerificationType type2, TRAPS) {
   assert(type1.is_long() || type1.is_double(), "must be long/double");
   assert(type2.is_long2() || type2.is_double2(), "must be long/double_2");
   if (_stack_size >= _max_stack - 1) {
     verifier()->verify_error(
         ErrorContext::stack_overflow(_offset, this),
         "Operand stack overflow");
     return;
   }
   _stack[_stack_size++] = type1;
   _stack[_stack_size++] = type2;
 }
开发者ID:stkaushal,项目名称:jdk8_tl,代码行数:13,代码来源:stackMapFrame.hpp


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