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


C++ VectorSet::test方法代码示例

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


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

示例1: add_liveout

//------------------------------add_liveout------------------------------------
// Add a live-out value to a given blocks live-out set.  If it is new, then
// also add it to the delta set and stick the block on the worklist.
void PhaseLive::add_liveout( Block *p, uint r, VectorSet &first_pass ) {
  IndexSet *live = &_live[p->_pre_order-1];
  if( live->insert(r) ) {       // If actually inserted...
    // We extended the live-out set.  See if the value is generated locally.
    // If it is not, then we must extend the live-in set.
    if( !_defs[p->_pre_order-1].member( r ) ) {
      if( !_deltas[p->_pre_order-1] && // Not on worklist?
          first_pass.test(p->_pre_order) )
        _worklist->push(p);     // Actually go on worklist if already 1st pass
      getset(p)->insert(r);  
    }
  }
}
开发者ID:subxiang,项目名称:jdk-source-code,代码行数:16,代码来源:live.cpp

示例2: is_arg_stack

 // The given argument escapes the callee, but does not become globally
 // reachable.
 bool is_arg_stack(int i) const {
   return !_conservative && _arg_stack.test(i);
 }
开发者ID:GudzonskiyYastreb,项目名称:openjdk-fontfix,代码行数:5,代码来源:bcEscapeAnalyzer.hpp

示例3: is_arg_returned

 // The given argument does not escape globally, and may be returned.
 bool is_arg_returned(int i) const {
   return !_conservative && _arg_returned.test(i); }
开发者ID:GudzonskiyYastreb,项目名称:openjdk-fontfix,代码行数:3,代码来源:bcEscapeAnalyzer.hpp

示例4: is_arg_local

 // The given argument does not escape the callee.
 bool is_arg_local(int i) const {
   return !_conservative && _arg_local.test(i);
 }
开发者ID:GudzonskiyYastreb,项目名称:openjdk-fontfix,代码行数:4,代码来源:bcEscapeAnalyzer.hpp


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