Class: Rubycc::Front::AST::BuiltinExpect

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

"__builtin_expect ( exp , c )": gcc's branch-prediction hint, typed long(long, long). exp is the tested expression and c the value it is expected to take. rubycc has no optimizer, so the hint carries no weight: both operands are evaluated (left to right, c for its side effects) and the whole expression is exp converted to long. token is the builtin keyword.

Instance Attribute Summary collapse

Instance Attribute Details

#cObject (readonly)

Returns the value of attribute c

Returns:

  • (Object)

    the current value of c



356
357
358
# File 'lib/rubycc/front/ast.rb', line 356

def c
  @c
end

#expObject (readonly)

Returns the value of attribute exp

Returns:

  • (Object)

    the current value of exp



356
357
358
# File 'lib/rubycc/front/ast.rb', line 356

def exp
  @exp
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



356
357
358
# File 'lib/rubycc/front/ast.rb', line 356

def token
  @token
end