Class: Rubinius::AST::SendFastNew
- Inherits:
-
SendWithArguments
- Object
- Node
- Send
- SendWithArguments
- Rubinius::AST::SendFastNew
- Defined in:
- lib/compiler/ast/transforms.rb
Overview
Emits a fast path for #new
Constant Summary collapse
- KernelMethodSerial =
FIXME duplicated from kernel/common/compiled_code.rb
47
Instance Attribute Summary
Attributes inherited from SendWithArguments
Attributes inherited from Send
#block, #check_for_local, #name, #privately, #receiver, #variable
Attributes inherited from Node
Class Method Summary collapse
Methods inherited from SendWithArguments
Methods inherited from Send
#arguments_sexp, #check_local_reference, #initialize, #receiver_sexp, #sexp_name, #to_sexp
Methods inherited from Node
#ascii_graph, #attributes, #children, #initialize, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, #to_sexp, transform, #transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk
Constructor Details
This class inherits a constructor from Rubinius::AST::SendWithArguments
Class Method Details
.match?(line, receiver, name, arguments, privately) ⇒ Boolean
205 206 207 208 209 |
# File 'lib/compiler/ast/transforms.rb', line 205 def self.match?(line, receiver, name, arguments, privately) # ignore vcall style return false if !arguments and privately name == :new end |